KR20230159207A - Electronic device for managing controlled device and method of operating the same - Google Patents

Electronic device for managing controlled device and method of operating the same Download PDF

Info

Publication number
KR20230159207A
KR20230159207A KR1020220089118A KR20220089118A KR20230159207A KR 20230159207 A KR20230159207 A KR 20230159207A KR 1020220089118 A KR1020220089118 A KR 1020220089118A KR 20220089118 A KR20220089118 A KR 20220089118A KR 20230159207 A KR20230159207 A KR 20230159207A
Authority
KR
South Korea
Prior art keywords
electronic device
external electronic
server
information
controlled device
Prior art date
Application number
KR1020220089118A
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 PCT/KR2023/001990 priority Critical patent/WO2023219234A1/en
Priority to US18/180,279 priority patent/US20230370328A1/en
Publication of KR20230159207A publication Critical patent/KR20230159207A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2809Exchanging configuration information on appliance services in a home automation network indicating that an appliance service is present in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • H04L12/2825Reporting to a device located outside the home and the home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless

Abstract

통신 회로 및 적어도 하나의 프로세서를 포함하는 전자 장치를 개시한다. 적어도 하나의 프로세서는, 서버로부터 외부 전자 장치의 장치 정보를 수신하고, 상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하고, 상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하고, 상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하고, 상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하고, 상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하도록 구성될 수 있다.An electronic device including a communication circuit and at least one processor is disclosed. At least one processor receives device information of an external electronic device from a server, displays a guide screen guiding a communication connection with the external electronic device based on the device information, and displays a guide screen for guiding a communication connection with the external electronic device based on a user input to the guide screen. Establishing the communication connection with the external electronic device through the communication circuit, and receiving connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection. and transmit a recovery command to the external electronic device through the communication connection based on the error code and the device log data, and receive a message from the server notifying that the external electronic device is connected to the server. there is.

Description

피제어 장치를 관리하는 전자 장치 및 그 동작 방법{ELECTRONIC DEVICE FOR MANAGING CONTROLLED DEVICE AND METHOD OF OPERATING THE SAME}Electronic device for managing a controlled device and its operating method {ELECTRONIC DEVICE FOR MANAGING CONTROLLED DEVICE AND METHOD OF OPERATING THE SAME}

본 발명의 실시예들은 피제어 장치를 관리하는 전자 장치 및 그 동작 방법에 관한 것이다.Embodiments of the present invention relate to an electronic device that manages a controlled device and a method of operating the same.

사용자 단말, 예를 들어, 스마트 폰과 같은 전자 장치를 통해 제공되는 다양한 서비스 및 부가 기능들이 점차 증가하고 있다. 이러한 전자 장치의 효용 가치를 높이고, 다양한 사용자들의 욕구를 만족시키기 위해서 통신 서비스 제공자 또는 전자 장치 제조사들은 다양한 기능들을 제공하는 전자 장치를 경쟁적으로 개발하고 있다. 이에 따라, 전자 장치를 통해서 제공되는 다양한 기능들도 점점 고도화 되고 있다. The variety of services and additional functions provided through user terminals, for example, electronic devices such as smart phones, is gradually increasing. In order to increase the utility value of these electronic devices and satisfy the needs of various users, communication service providers or electronic device manufacturers are competitively developing electronic devices that provide various functions. Accordingly, various functions provided through electronic devices are becoming increasingly sophisticated.

무선 통신 기술이 발전함에 따라 인공지능(artificial intelligence: AI)을 이용한 장치들이 널리 도입되고 있다. 예를 들어, 사물인터넷(internet of things: IoT) 기술이 적용되어 네트워크에 연결되는 가전 제품은 인공 지능을 이용할 수 있다. IoT 기술은 장치들에서 생성되는 데이터를 수집 및 분석하여 인간의 삶에 새로운 가치를 창출하는 지능형 인터넷 기술 서비스를 제공할 수 있다. 기존 인터넷 기술과 다양한 산업의 융합 및 결합을 통해 IoT 기술은 스마트 홈, 스마트 빌딩, 스마트 시티, 스마트 카, 및 스마트 가전과 같은 분야들에 적용될 수 있다.As wireless communication technology develops, devices using artificial intelligence (AI) are being widely introduced. For example, home appliances that are connected to a network using Internet of Things (IoT) technology can use artificial intelligence. IoT technology can provide intelligent Internet technology services that create new value in human life by collecting and analyzing data generated from devices. Through the convergence and combination of existing Internet technology and various industries, IoT technology can be applied to fields such as smart homes, smart buildings, smart cities, smart cars, and smart home appliances.

한편, 가정에는 사용자의 편의를 위한 다양한 가전 제품이 구비되어 있다. IoT 기술을 활용하여 가전 제품의 조작이나 제어를 보다 편리하게 하기 위한 다양한 서비스들이 제안되고 있다. 홈 네트워크 기술은 홈 네트워크를 통한 다양한 서비스를 가정 내의 사용자들에게 제공할 수 있다. 예를 들면, 사용자는 개인용 전자 장치(예: 스마트 폰)를 이용하여 홈 네트워크를 구성하는 다양한 피제어 장치들(controlled devices)(예를 들어, IoT 기술이 적용된 가전 제품들)을 제어할 수 있다. 사용자는 피제어 장치들을 제어하기 위해 더욱 다양한 서비스를 제공받기를 원할 수 있다. 이에 따라, 사용자의 의도를 반영하여 피제어 장치들을 관리하는 다양한 기술의 개발이 요청되고 있다.Meanwhile, homes are equipped with various home appliances for user convenience. Various services are being proposed to utilize IoT technology to make the operation or control of home appliances more convenient. Home network technology can provide various services to users at home through a home network. For example, a user can use a personal electronic device (e.g., a smart phone) to control various controlled devices (e.g., home appliances with IoT technology) that make up a home network. . Users may wish to receive more diverse services to control controlled devices. Accordingly, there is a demand for the development of various technologies to manage controlled devices by reflecting the user's intention.

사용자는 피제어 장치(예를 들어 텔레비전(TV), 에어컨, 세탁기, 보안 카메라, 조명 기기, 또는 스위치)를 제어하기 위해 사용자가 소유하고 있는 전자 장치(예를 들어 스마트폰 또는 웨어러블 장치)를 사용하여 피제어 장치를 네트워크(예를 들어 클라우드 서버)에 등록하기 위한 절차(예를 들어 온보딩(onboarding))를 실행할 수 있다. 전자 장치는 피제어 장치가 서버에 등록하도록 제어함으로써 피제어 장치를 사용자 계정에 연결시킬 수 있다. 전자 장치는 사용자 계정을 이용하여 클라이언트 어플리케이션을 통해 서버에 접속하고 피제어 장치를 제어할 수 있다. The user uses an electronic device (e.g. a smartphone or wearable device) owned by the user to control the controlled device (e.g. a television (TV), air conditioner, washing machine, security camera, lighting device, or switch). Thus, a procedure (e.g., onboarding) for registering the controlled device to a network (e.g., cloud server) can be performed. The electronic device can connect the controlled device to the user account by controlling the controlled device to register with the server. The electronic device can access the server and control the controlled device through a client application using a user account.

전자 장치는 클라이언트 어플리케이션을 통해 사용자 계정에 대해 등록된 피제어 장치들의 상태를 확인하고 제어할 수 있다. 피제어 장치가 서버에 정상적으로 연결될 수 없는 경우 피제어 장치는 클라이언트 어플리케이션에서 오프라인 상태로 표시될 수 있다. 피제어 장치는 장치 문제, 네트워크 장애, 클라우드 장애 또는 어플리케이션 장애와 같은 여러 가지 원인들로 인해 오프라인 상태가 될 수 있다. 피제어 장치가 오프라인 상태로 표시되는 경우 전자 장치는 플러그인 어플리케이션을 사용하여 오프라인 가이드 팝업을 제공할 수 있다. 종래의 기술에서 오프라인 가이드 팝업은 댁내 네트워크 환경의 확인 및 전원 플러그의 확인과 같이 일반적인 조치 가이드(help guide)만을 제공하고 있기 때문에 피제어 장치의 연결 장애를 해결하는데 실질적인 도움이 되지 않을 수 있다. The electronic device can check and control the status of controlled devices registered for the user account through a client application. If the controlled device cannot properly connect to the server, the controlled device may be displayed as offline in the client application. A controlled device can go offline for a number of reasons, such as device issues, network failures, cloud failures, or application failures. If the controlled device is displayed as offline, the electronic device may provide an offline guide pop-up using a plug-in application. In conventional technology, the offline guide pop-up only provides general action guides (help guides) such as checking the in-house network environment and checking the power plug, so it may not be of practical help in resolving the connection failure of the controlled device.

또한, 상시 전원을 사용하는 피제어 장치(예를 들어 냉장고)에서 소프트웨어 장애를 이유로 연결끊김(offline) 문제가 발생한 경우, 전원 온/오프로는 연결이 회복될 수 없으며 전원 플러그를 뽑았다가 다시 꽂아야 하지만, 냉장고와 같은 설치형 가전기기(build appliance)의 경우 사용자가 전원 플러그를 뽑았다가 다시 꽂기가 어려울 수 있다. 이러한 경우 피제어 장치의 오프라인 상태를 해결하기 위해 피제어 장치를 삭제 후 다시 서버에 등록할 필요가 있지만, 사용자는 정확한 조치 가이드를 알기 어려웠다. 피제어 장치의 재등록을 위해서는 기존 등록 정보를 삭제한 후 다시 등록 절차를 실행하여야 하며 이는 사용자의 불편함을 야기하는 문제점이 있었다. Additionally, if an offline problem occurs due to a software failure in a controlled device that uses constant power (e.g. a refrigerator), the connection cannot be restored by turning the power on/off and the power plug must be unplugged and plugged in again. However, in the case of built appliances such as refrigerators, it may be difficult for users to unplug the power plug and plug it back in. In this case, in order to resolve the offline state of the controlled device, it is necessary to delete the controlled device and then register it on the server again, but it was difficult for the user to know the exact action guide. In order to re-register a controlled device, existing registration information must be deleted and then the registration process must be performed again, which causes inconvenience to the user.

본 개시의 실시예들은, 전자 장치를 오프라인 상태인 피제어 장치에 직접 연결하고 진단을 위한 쉬운 연결성을 제공할 수 있다. Embodiments of the present disclosure can directly connect an electronic device to an offline controlled device and provide easy connectivity for diagnosis.

본 개시의 실시예들은, 오프라인 상태인 피제어 장치의 직접 연결 진단을 통해 오프라인 원인을 파악하고 피제어 장치에 적합한 솔루션을 제공하는 전자 장치 및 그 동작 방법에 관한 것이다.Embodiments of the present disclosure relate to an electronic device and a method of operating the same that determine the cause of an offline controlled device through direct connection diagnosis and provide a suitable solution to the controlled device.

본 개시의 실시예들은, 오프라인 상태인 피제어 장치의 직접 연결 진단시 로그 정보를 통해 서비스의 안정성과 피제어 장치의 사용 만족도를 향상시키는 전자 장치 및 그 동작 방법에 관한 것이다.Embodiments of the present disclosure relate to an electronic device and a method of operating the same that improve service stability and user satisfaction of a controlled device through log information when diagnosing a direct connection of an offline controlled device.

본 개시에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.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.

일 실시예에 따른 전자 장치는, 통신 회로 및 상기 통신 회로와 작동적으로 연결된 적어도 하나의 프로세서를 포함할 수 있다. 상기 적어도 하나의 프로세서는, 서버로부터 외부 전자 장치의 장치 정보를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하도록 구성될 수 있다.An electronic device according to an embodiment may include a communication circuit and at least one processor operatively connected to the communication circuit. The at least one processor may be configured to receive device information of an external electronic device from a server. The at least one processor may be configured to display a guide screen that guides communication connection with the external electronic device based on the device information. The at least one processor may be configured to establish the communication connection with the external electronic device through the communication circuit based on a user input on the guide screen. The at least one processor may be configured to receive connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection. The at least one processor may be configured to transmit a recovery command to the external electronic device through the communication connection based on the error code and the device log data. The at least one processor may be configured to receive a message from the server notifying that the external electronic device is connected to the server.

일 실시예에 따른 전자 장치의 동작 방법은, 서버로부터 외부 전자 장치의 장치 정보를 수신하는 동작을 포함할 수 있다. 상기 방법은 상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하는 동작을 포함할 수 있다. 상기 방법은 상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하는 동작을 포함할 수 있다. 상기 방법은 상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하는 동작을 포함할 수 있다. 상기 방법은 상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하는 동작을 포함할 수 있다. 상기 방법은 상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하는 동작을 포함할 수 있다.A method of operating an electronic device according to an embodiment may include receiving device information of an external electronic device from a server. The method may include displaying a guide screen that guides communication connection with the external electronic device based on the device information. The method may include establishing the communication connection with the external electronic device through the communication circuit based on a user input to the guide screen. The method may include receiving connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection. The method may include transmitting a recovery command to the external electronic device through the communication connection based on the error code and the device log data. The method may include receiving a message from the server indicating that the external electronic device is connected to the server.

일 실시예에 따라 하나 이상의 프로그램을 저장하는 비일시적 컴퓨터 판독 가능 저장 매체로서, 상기 하나 이상의 프로그램은 전자 장치의 적어도 하나의 프로세서에 의해 실행될 때 상기 전자 장치가: 서버로부터 외부 전자 장치의 장치 정보를 수신하고, 상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하고, 상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하고, 상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하고, 상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하고, 상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하도록 구성되는 명령어들을 포함할 수 있다.According to one embodiment, a non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs, when executed by at least one processor of an electronic device, cause the electronic device to: retrieve device information of an external electronic device from a server; Receive, display a guide screen guiding a communication connection with the external electronic device based on the device information, and establish a communication connection with the external electronic device through the communication circuit based on a user input on the guide screen. Establishing and receiving connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection, and performing the communication based on the error code and the device log data It may include commands configured to transmit a recovery command to the external electronic device through connection and receive a message from the server notifying that the external electronic device is connected to the server.

도 1은 다양한 실시예에 따른 IoT(internet of things) 시스템을 도시한다.
도 2은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 3은 일 실시예에 따른 피제어 장치들을 포함하는 네트워크를 설명하기 위한 도면이다.
도 4는 일 실시예에 따라 전자 장치에 표시되는 피제어 장치의 상태를 설명하기 위한 도면이다.
도 5는 일 실시예에 따라 피제어 장치들을 포함하는 시스템 아키텍처를 설명하기 위한 도면이다.
도 6은 일 실시예에 따라 피제어 장치의 직접 연결 진단을 제공하는 절차를 설명하는 흐름도이다.
도 7은 일 실시예에 따른 진단 절차를 설명하기 위한 도면이다.
도 8은 일 실시예에 따라 피제어 장치가 서버에 장치 정보를 업데이트하는 절차를 설명하기 위한 도면이다.
도 9는 일 실시예에 따라 피제어 장치가 서버에 장치 정보를 등록하는 절차를 설명하기 위한 도면이다.
도 10은 일 실시예에 따라 보안 연결을 통해 피제어 장치의 직접 연결 진단을 실행하는 절차를 설명하기 위한 신호 흐름도(sequence diagram)를 나타낸 것이다.
도 11은 일 실시예에 따라 피제어 장치의 소유권을 확인하는 절차를 설명하기 위한 신호 흐름도이다.
도 12는 일 실시예에 따라 연결 정보와 장치 로그 데이터를 수신하는 절차를 설명하기 위한 신호 흐름도이다.
도 13은 일 실시예에 따른 에러 핸들링과 에러 보고를 설명하기 위한 신호 흐름도이다.
도 14는 일 실시예에 따라 비보안 연결을 통해 피제어 장치의 직접 연결 진단을 실행하는 절차를 설명하기 위한 신호 흐름도를 나타낸 것이다.
도 15는 일 실시예에 따라 소프트 AP 모드를 이용하여 피제어 장치의 직접 연결 진단을 실행하는 절차를 설명하기 위한 신호 흐름도를 나타낸 것이다.
도 16은 일 실시예에 따라 연결 정보와 장치 로그 데이터를 수신하는 절차를 설명하기 위한 신호 흐름도이다.
도 17은 일 실시예에 따라 일반 진단을 실행하는 사용자 인터페이스 화면을 나타낸 도면이다.
도 18a, 도 18b 및 도 18c는 일 실시예에 따라 직접 연결 진단을 실행하는 사용자 인터페이스 화면들을 나타낸 도면이다.
도 19a 및 도 19b는 일 실시예에 따라 에러 핸들링 및 에러 보고를 실행하는 사용자 인터페이스 화면들을 나타낸 도면이다.
도 20은 일 실시예에 따라 비보안 연결을 통해 에러 핸들링을 실행하는 사용자 인터페이스 화면들을 나타내는 도면이다.
도 21은 일 실시예에 따라 보안 연결을 통해 에러 핸들링을 실행하는 사용자 인터페이스 화면들을 나타내는 도면이다.
도 22는 일 실시예에 따라 에러 핸들링을 통해 네트워크 재선택을 가이드하는 사용자 인터페이스 화면들을 나타내는 도면이다.
1 illustrates an internet of things (IoT) system according to various embodiments.
2 is a block diagram of an electronic device in a network environment, according to various embodiments.
FIG. 3 is a diagram illustrating a network including controlled devices according to an embodiment.
FIG. 4 is a diagram for explaining the status of a controlled device displayed on an electronic device, according to an embodiment.
FIG. 5 is a diagram for explaining a system architecture including controlled devices according to an embodiment.
Figure 6 is a flowchart illustrating a procedure for providing direct connection diagnosis of a controlled device according to an embodiment.
Figure 7 is a diagram for explaining a diagnostic procedure according to an embodiment.
FIG. 8 is a diagram illustrating a procedure for a controlled device to update device information on a server, according to an embodiment.
FIG. 9 is a diagram illustrating a procedure in which a controlled device registers device information in a server according to an embodiment.
Figure 10 shows a signal flow diagram (sequence diagram) to explain a procedure for executing direct connection diagnosis of a controlled device through a secure connection according to an embodiment.
Figure 11 is a signal flow diagram to explain a procedure for confirming ownership of a controlled device according to an embodiment.
FIG. 12 is a signal flow diagram illustrating a procedure for receiving connection information and device log data according to an embodiment.
Figure 13 is a signal flow diagram to explain error handling and error reporting according to an embodiment.
FIG. 14 is a signal flow diagram illustrating a procedure for executing direct connection diagnosis of a controlled device through a non-secure connection according to an embodiment.
Figure 15 shows a signal flow diagram to explain a procedure for executing direct connection diagnosis of a controlled device using soft AP mode according to an embodiment.
FIG. 16 is a signal flow diagram illustrating a procedure for receiving connection information and device log data according to an embodiment.
Figure 17 is a diagram illustrating a user interface screen for executing general diagnosis according to one embodiment.
FIGS. 18A, 18B, and 18C are diagrams illustrating user interface screens for executing direct connection diagnosis according to an embodiment.
19A and 19B are diagrams illustrating user interface screens for error handling and error reporting according to an embodiment.
FIG. 20 is a diagram illustrating user interface screens for executing error handling through a non-secure connection, according to an embodiment.
FIG. 21 is a diagram illustrating user interface screens for executing error handling through a secure connection according to an embodiment.
FIG. 22 is a diagram illustrating user interface screens that guide network reselection through error handling according to an embodiment.

도 1은 다양한 실시예에 따른 IoT(internet of things) 시스템(100)을 도시한다. 한편, 도 1의 구성 요소 중 적어도 일부는 생략될 수도 있으며, 도시되지 않은 구성 요소가 더 포함되도록 구현될 수도 있다.1 illustrates an internet of things (IoT) system 100 according to various embodiments. Meanwhile, at least some of the components in FIG. 1 may be omitted, and may be implemented to include additional components not shown.

도 1을 참조하면, 일 실시예에 따른 IoT 시스템(100)은, 데이터 네트워크(116 또는 146)에 연결 가능한 복수의 전자 장치들을 포함한다. 예를 들어, IoT 시스템(100)은 제 1 IoT 서버(110), 제 1 노드(node)(120), 보이스 어시스턴트(voice assistance) 서버(130), 제 2 IoT 서버(140), 제 2 노드(150), 또는 디바이스들(121,122,123,124,125,136,137,151,152,153) 중 적어도 하나를 포함할 수 있다. Referring to FIG. 1, the IoT system 100 according to one embodiment includes a plurality of electronic devices connectable to the data network 116 or 146. For example, the IoT system 100 includes a first IoT server 110, a first node 120, a voice assistance server 130, a second IoT server 140, and a second node. 150, or may include at least one of the devices 121, 122, 123, 124, 125, 136, 137, 151, 152, and 153.

일 실시예에 따라서, 제 1 IoT 서버(110)는, 통신 인터페이스(111), 프로세서(112), 또는 저장부(113) 중 적어도 하나를 포함할 수 있다. 제 2 IoT 서버(140)는, 통신 인터페이스(141), 프로세서(142), 또는 저장부(143) 중 적어도 하나를 포함할 수 있다. 본 문서에서의 "IoT 서버"는, 예를 들어 데이터 네트워크(예: 데이터 네트워크(116) 또는 데이터 네트워크(146))에 기반하여, 중계 디바이스(예: 제 1 노드(120) 또는 제 2 노드(150))를 통하거나, 또는 중계 디바이스 없이 직접적으로(directly), 하나 또는 그 이상의 디바이스들(예: 디바이스들(121,122,123,124,125,151,152,153))을 원격으로 제어 및/또는 모니터링할 수 있다. 여기에서의 "디바이스"는, 예를 들어 가택, 사무실, 공장, 빌딩, 외부 지점, 또는 다른 타입의 부지들과 같은 로컬 환경 내에 배치되는(또는, 위치하는) 센서, 가전, 사무용 전자 디바이스, 또는 공정 수행을 위한 디바이스로, 그 종류에는 제한이 없다. 제어 명령을 수신하여 제어 명령에 대응하는 동작을 수행하는 디바이스를 "타겟 디바이스"로 명명할 수 있다. IoT 서버는, 복수의 디바이스들 중 타겟 디바이스를 선택하고 제어 명령을 제공하는 점에서, 중앙 서버(central server)로 명명될 수도 있다.According to one embodiment, the first IoT server 110 may include at least one of a communication interface 111, a processor 112, or a storage unit 113. The second IoT server 140 may include at least one of a communication interface 141, a processor 142, or a storage unit 143. “IoT server” in this document refers to a relay device (e.g., first node 120 or second node (120), for example, based on a data network (e.g., data network 116 or data network 146). One or more devices (e.g., devices 121, 122, 123, 124, 125, 151, 152, 153) can be remotely controlled and/or monitored via 150)) or directly without a relay device. “Device” herein refers to a sensor, appliance, office electronic device, or It is a device for performing processes, and there are no restrictions on its type. A device that receives a control command and performs an operation corresponding to the control command may be named a “target device.” The IoT server may be called a central server in that it selects a target device among a plurality of devices and provides control commands.

일 실시예에 따라서, 제 1 IoT 서버(110)는, 데이터 네트워크(116)를 통하여 디바이스들(121,122,123)과 통신을 수행할 수 있다. 데이터 네트워크(116)는, 예를 들어 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신을 위한 네트워크를 의미할 수 있으며, 또는 셀룰러 네트워크를 포함할 수도 있다. According to one embodiment, the first IoT server 110 may communicate with the devices 121, 122, and 123 through the data network 116. Data network 116 may refer to a network for long-distance communication, such as the Internet or a computer network (e.g., LAN or WAN), or may include a cellular network.

일 실시예에 따라서, 제 1 IoT 서버(110)는, 통신 인터페이스(111)를 통하여 데이터 네트워크(116)에 연결될 수 있다. 통신 인터페이스(111)는, 데이터 네트워크(116)의 통신을 지원하기 위한 통신 디바이스(또는, 통신 모듈)를 포함할 수 있으며, 하나의 구성 요소(예: 단일 칩)로 통합되거나, 또는 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 제 1 IoT 서버(110)는, 제 1 노드(120)를 통하여 디바이스들(121,122,123)와 통신을 수행할 수 있다. 제 1 노드(120)는, 제 1 IoT 서버(110)로부터의 데이터를 데이터 네트워크(116)를 통하여 수신하고, 수신한 데이터를 디바이스들(121,122,123) 중 적어도 일부로 송신할 수 있다. 또는, 제 1 노드(120)는, 디바이스들(121,122,123) 중 적어도 일부로부터 데이터를 수신하고, 수신한 데이터를 데이터 네트워크(116)를 통하여 제 1 IoT 서버(110)로 송신할 수 있다. 제 1 노드(120)는, 데이터 네트워크(116) 및 디바이스들(121,122,123) 사이의 브릿지(bridge)로서 기능할 수 있다. 한편, 도 1에서는 제 1 노드(120)가 하나인 것과 같이 도시되어 있지만 이는 단순히 예시적인 것으로, 그 숫자에는 제한이 없다. According to one embodiment, the first IoT server 110 may be connected to the data network 116 through the communication interface 111. The communication interface 111 may include a communication device (or communication module) to support communication of the data network 116, and may be integrated into one component (e.g., a single chip), or may be integrated into a plurality of separate components. It can be implemented with components (e.g., multiple chips). The first IoT server 110 may communicate with the devices 121, 122, and 123 through the first node 120. The first node 120 may receive data from the first IoT server 110 through the data network 116 and transmit the received data to at least some of the devices 121, 122, and 123. Alternatively, the first node 120 may receive data from at least some of the devices 121, 122, and 123, and transmit the received data to the first IoT server 110 through the data network 116. The first node 120 may function as a bridge between the data network 116 and the devices 121, 122, and 123. Meanwhile, in FIG. 1, it is shown as if there is only one first node 120, but this is simply an example and there is no limit to the number.

본 문서에서의 "노드"는, 엣지 컴퓨팅 시스템(edge computing system)일 수 있거나, 또는 허브(hub) 디바이스일 수 있다. 일 실시예에 따라서, 제 1 노드(120)는, 데이터 네트워크(116)의 유선 및/또는 무선의 통신을 지원하며, 아울러 디바이스들(121,122,123)과의 유선 및/또는 무선의 통신을 지원할 수 있다. 예를 들어, 제 1 노드(120)는, 블루투스, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, INSETEON, X10 또는 IrDA(infrared data association 중 적어도 하나와 같은 근거리 통신 네트워크를 통하여 디바이스들(121,122,123)과 연결될 수 있으나, 통신 종류에는 제한이 없다. 제 1 노드(120)는, 예를 들어 가택, 사무실, 공장, 빌딩, 외부 지점, 또는 다른 타입의 부지들과 같은 환경 내에 배치(또는, 위치)될 수 있다. 이에 따라, 디바이스들(121,122,123)은, 제 1 IoT 서버(110)에 의하여 제공되는 서비스에 의하여 모니터링 및/또는 제어될 수 있으며, 디바이스들(121,122,123)은 제 1 IoT 서버(110)로의 직접 연결을 위한 완전한 네트워크 통신(예: 인터넷 통신)의 캐퍼빌리티(capability)를 갖출 것이 요구되지 않을 수 있다. 디바이스들(121,122,123)은, 예를 들어 전등 스위치, 근접 센서, 온도 센서 등으로 가택 환경 내의 전자 장치로 구현된 것과 같이 도시되었지만, 이는 예시적인 것으로 제한은 없다.A “node” in this document may be an edge computing system, or may be a hub device. According to one embodiment, the first node 120 supports wired and/or wireless communication of the data network 116, and may also support wired and/or wireless communication with the devices 121, 122, and 123. . For example, the first node 120 may be configured to communicate via a short-range communication network such as at least one of Bluetooth, Wi-Fi, Wi-Fi direct, Z-wave, Zig-bee, INSETEON, X10, or IrDA (infrared data association). It can be connected to devices 121, 122, and 123, but there is no limitation on the type of communication. The first node 120 is placed in an environment such as a home, office, factory, building, external location, or other types of premises. (or, location). Accordingly, the devices 121, 122, and 123 may be monitored and/or controlled by the service provided by the first IoT server 110, and the devices 121, 122, and 123 may be connected to the first IoT server 110. It may not be required to have the capability of complete network communication (e.g., Internet communication) for direct connection to the IoT server 110. Devices 121, 122, and 123 may include, for example, a light switch, a proximity sensor, Although it is shown as being implemented as an electronic device in a home environment, such as a temperature sensor, this is illustrative and is not limiting.

일 실시예에 따라서, 제 1 IoT 서버(110)는, 디바이스들(124,125)과의 직접 통신(direct communication)을 지원할 수도 있다. 여기에서, "직접 통신"은, 예를 들어 제 1 노드(120)와 같은 중계 디바이스를 통하지 않은 통신으로, 예를 들어 셀룰러 통신 네트워크 및/또는 데이터 네트워크를 통한 통신을 의미할 수 있다. According to one embodiment, the first IoT server 110 may support direct communication with the devices 124 and 125. Here, “direct communication” may mean communication that does not go through a relay device such as the first node 120, for example, communication through a cellular communication network and/or a data network.

일 실시예에 따라서, 제 1 IoT 서버(110)는, 디바이스들(121,122,123,124,125) 중 적어도 일부로 제어 명령을 송신할 수 있다. 여기에서, "제어 명령"은, 제어 가능한 디바이스가 특정 동작을 수행하도록 야기하는 데이터를 의미할 수 있으며, 특정 동작은 디바이스에 의하여 수행되는 동작으로, 정보의 출력, 정보의 센싱, 정보의 보고, 정보의 관리(예: 삭제, 또는 생성)를 포함할 수 있으며, 그 종류에는 제한이 없다. 예를 들어, 프로세서(112)는, 외부(예: 보이스 어시스턴트 서버(130), 제 2 IoT 서버(140), 외부 시스템(160), 또는 디바이스들(121,122,123,124,125) 중 적어도 일부)로부터 제어 명령을 생성하기 위한 정보(또는, 요청)를 획득하고, 획득한 정보에 기반하여 제어 명령을 생성할 수 있다. 또는, 프로세서(112)는, 디바이스들(121,122,123,124,125) 중 적어도 일부의 모니터링 결과가 지정된 조건을 만족함에 기반하여 제어 명령을 생성할 수 있다. 프로세서(112)는, 제어 명령을, 타겟 디바이스로 송신하도록 통신 인터페이스(111)를 제어할 수 있다.According to one embodiment, the first IoT server 110 may transmit a control command to at least some of the devices 121, 122, 123, 124, and 125. Here, “control command” may mean data that causes a controllable device to perform a specific operation, and the specific operation is an operation performed by the device, such as outputting information, sensing information, reporting information, It may include management of information (e.g. deletion or creation), and there is no limit to the type. For example, the processor 112 generates a control command from an external source (e.g., the voice assistant server 130, the second IoT server 140, the external system 160, or at least some of the devices 121, 122, 123, 124, and 125). Information (or request) to do so may be obtained, and a control command may be generated based on the obtained information. Alternatively, the processor 112 may generate a control command based on the monitoring results of at least some of the devices 121, 122, 123, 124, and 125 satisfying specified conditions. The processor 112 may control the communication interface 111 to transmit control commands to the target device.

일 실시예에 따라서, 프로세서(112), 또는 프로세서(132), 프로세서(142)는, CPU(central processing unit), DSP(digital signal processor), AP(application processor), 또는 CP(communication processor)와 같은 범용 프로세서, GPU(graphical processing unit), VPU(vision processing Unit)와 같은 그래픽 전용 프로세서 또는 NPU(neural processing unit)와 같은 인공 지능 전용 프로세서 중 하나 이상의 조합으로 구현될 수 있다. 상술한 처리 유닛은 단순히 예시적인 것으로, 프로세서(112)는, 예를 들어 메모리(113)에 저장된 인스트럭션을 실행하여, 실행된 결과를 출력할 수 있는 연산 수단이라면 제한이 없음을 당업자는 이해할 것이다. According to one embodiment, the processor 112, or the processor 132, or the processor 142 includes a central processing unit (CPU), a digital signal processor (DSP), an application processor (AP), or a communication processor (CP). It may be implemented as a combination of one or more of a general-purpose processor, a graphics-specific processor such as a GPU (graphical processing unit), a VPU (vision processing unit), or an artificial intelligence-specific processor such as an NPU (neural processing unit). Those skilled in the art will understand that the above-described processing unit is merely an example, and that the processor 112 is not limited to any computational means that can, for example, execute instructions stored in the memory 113 and output the executed result.

일 실시예에 따라서, 프로세서(112)는, API(114)에 기반하여 웹-기반 인터페이스를 구성하거나, 또는 제 1 IoT 서버(110)에 의하여 관리되는 리소스(resource)를 외부에 노출시킬 수 있다. 웹-기반 인터페이스는, 예를 들어 제 1 IoT 서버(110) 및 외부 웹 서비스 사이의 통신을 지원할 수 있다. 프로세서(112)는, 예를 들어 외부 시스템(160)으로 하여금 디바이스들(121,122,123)의 제어 및/또는 억세스를 허용할 수도 있다. 외부 시스템(160)은, 예를 들어 시스템(100)과 연관이 없거나, 또는 일부가 아닌 독립적인 시스템일 수 있다. 외부 시스템(160)은, 예를 들어 외부 서버이거나, 또는 웹 사이트일 수 있다. 하지만, 외부 시스템(160)으로부터의 디바이스들(121,122,123), 또는 제 1 IoT 서버(110)의 리소스로의 억세스에 대한 보안이 요구된다. 일 실시예에 따라서, 프로세서(112)는, 자동화 어플리케이션은 API(114)에 기반한 API 엔드 포인트(예: URL(universal resource locator))을 외부에 노출할 수 있다. 상술한 바에 따라서, 제 1 IoT 서버(110)는, 제어 명령을 디바이스들(121,122,123) 중 타겟 디바이스에게 전달할 수 있다. 한편, 제 2 IoT 서버(140)의 통신 인터페이스(141), 프로세서(142), 저장부(143)의 API(144), 데이터베이스(145)에 대한 설명은, 제 1 IoT 서버(110)의 통신 인터페이스(111), 프로세서(112), 저장부(113)의 API(114), 데이터베이스(115)에 대한 설명과 실질적으로 동일할 수 있다. 아울러, 제 2 노드(150)에 대한 설명은, 제 1 노드(120)에 대한 설명과 실질적으로 동일할 수 있다. 제 2 IoT 서버(140)는, 제어 명령을 디바이스들(151,152,153) 중 타겟 디바이스에게 전달할 수 있다. 제 1 IoT 서버(110) 및 제 2 IoT 서버(140)는, 하나의 실시예에서는 동일한 서비스 제공자에 의하여 운영될 수 있으나, 다른 실시예에서는 상이한 서비스 제공자들에 의하여 각각 운영될 수도 있다. According to one embodiment, the processor 112 may configure a web-based interface based on the API 114 or expose resources managed by the first IoT server 110 to the outside. . The web-based interface may support communication between the first IoT server 110 and an external web service, for example. The processor 112 may, for example, allow the external system 160 to control and/or access the devices 121, 122, and 123. External system 160 may be, for example, an independent system that is not related to or part of system 100. External system 160 may be, for example, an external server or a website. However, security is required for access to the devices 121, 122, and 123 from the external system 160 or the resources of the first IoT server 110. According to one embodiment, the processor 112 and the automation application may expose an API endpoint (eg, a universal resource locator (URL)) based on the API 114 to the outside. According to the above description, the first IoT server 110 may transmit a control command to the target device among the devices 121, 122, and 123. Meanwhile, the description of the communication interface 141, the processor 142, the API 144 of the storage unit 143, and the database 145 of the second IoT server 140 are described in detail in the communication of the first IoT server 110. It may be substantially the same as the description of the interface 111, the processor 112, the API 114 of the storage unit 113, and the database 115. In addition, the description of the second node 150 may be substantially the same as the description of the first node 120. The second IoT server 140 may transmit a control command to a target device among the devices 151, 152, and 153. The first IoT server 110 and the second IoT server 140 may be operated by the same service provider in one embodiment, but may be operated by different service providers in another embodiment.

일 실시예에 따라서, 보이스 어시스턴트 서버(130)는, 데이터 네트워크(116)를 통하여 제 1 IoT 서버(110)와 데이터를 송수신할 수 있다. 일 실시예에 따른 보이스 어시스턴트 서버(130)는, 통신 인터페이스(131), 프로세서(132), 또는 저장부(133) 중 적어도 하나를 포함할 수 있다. 통신 인터페이스(131)는, 데이터 네트워크(미도시) 및/또는 셀룰러 네트워크(미도시)를 통하여 스마트 폰(136) 또는 AI 스피커(137)와 통신을 수행할 수 있다. 스마트 폰(136) 또는 AI 스피커(137)는 마이크를 포함할 수 있으며, 사용자 음성(user voice)을 획득하여 음성 신호로 변환하여, 음성 신호를 보이스 어시스턴트 서버(130)로 송신할 수 있다. 프로세서(132)는, 통신 인터페이스(131)를 통하여 스마트 폰(136) 또는 AI 스피커(137)로부터 음성 신호를 수신할 수 있다. 프로세서(132)는, 수신한 음성 신호를 저장된 모델(134)에 기반하여 처리할 수 있다. 프로세서(132)는, 데이터베이스(135)에 저장된 정보에 기반하여, 처리 결과를 이용하여 제어 명령을 생성(또는, 확인)할 수 있다. 일 실시예에 따라서, 저장부(113,133,143)는, 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM, random access memory) SRAM(static random access memory), 롬(ROM, read-only memory), EEPROM(electrically erasable programmable read-only memory), PROM(programmable read-only memory), 자기 메모리, 자기 디스크, 또는 광디스크 중 적어도 하나의 타입의 비 일시적(non-transitory) 저장매체를 포함할 수 있으며, 그 종류에는 제한이 없다.According to one embodiment, the voice assistant server 130 may transmit and receive data with the first IoT server 110 through the data network 116. The voice assistant server 130 according to one embodiment may include at least one of a communication interface 131, a processor 132, and a storage unit 133. The communication interface 131 may communicate with the smart phone 136 or the AI speaker 137 through a data network (not shown) and/or a cellular network (not shown). The smart phone 136 or the AI speaker 137 may include a microphone, acquire a user voice, convert it into a voice signal, and transmit the voice signal to the voice assistant server 130. The processor 132 may receive a voice signal from the smart phone 136 or the AI speaker 137 through the communication interface 131. The processor 132 may process the received voice signal based on the stored model 134. The processor 132 may generate (or confirm) a control command using the processing result based on information stored in the database 135. According to one embodiment, the storage units 113, 133, and 143 include flash memory type, hard disk type, multimedia card micro type, and card type memory (e.g. SD or memory), magnetic memory, magnetic disk, or optical disk, and may include at least one type of non-transitory storage medium, and there is no limitation on the type.

다양한 실시예들에서 제1 IoT 서버(110)와 통신하는 적어도 하나의 디바이스(예를 들어 디바이스(124))는 네트워크 환경 내의 스마트폰(일 예로서 도 2의 전자 장치(201))일 수 있다. In various embodiments, at least one device (e.g., device 124) communicating with the first IoT server 110 may be a smartphone (e.g., electronic device 201 of FIG. 2) in a network environment. .

도 2은, 다양한 실시예들에 따른, 네트워크 환경(200) 내의 전자 장치(201)의 블록도이다. FIG. 2 is a block diagram of an electronic device 201 in a network environment 200, according to various embodiments.

도 2을 참조하면, 네트워크 환경(200)에서 전자 장치(201)는 제 1 네트워크(298)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(202)와 통신하거나, 또는 제 2 네트워크(299)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(204) 또는 서버(208) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(201)는 서버(208)를 통하여 전자 장치(204)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(201)는 프로세서(220), 메모리(230), 입력 모듈(250), 음향 출력 모듈(255), 디스플레이 모듈(260), 오디오 모듈(270), 센서 모듈(276), 인터페이스(277), 연결 단자(278), 햅틱 모듈(279), 카메라 모듈(280), 전력 관리 모듈(288), 배터리(289), 통신 모듈(290), 가입자 식별 모듈(296), 또는 안테나 모듈(297)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(201)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(278))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(276), 카메라 모듈(280), 또는 안테나 모듈(297))은 하나의 구성요소(예: 디스플레이 모듈(260))로 통합될 수 있다.Referring to FIG. 2, in the network environment 200, the electronic device 201 communicates with the electronic device 202 through the first network 298 (e.g., a short-range wireless communication network) or through the second network 299. It is possible to communicate with at least one of the electronic device 204 or the server 208 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 201 may communicate with the electronic device 204 through the server 208. According to one embodiment, the electronic device 201 includes a processor 220, a memory 230, an input module 250, an audio output module 255, a display module 260, an audio module 270, and a sensor module ( 276), interface 277, connection terminal 278, haptic module 279, camera module 280, power management module 288, battery 289, communication module 290, subscriber identification module 296 , or may include an antenna module 297. In some embodiments, at least one of these components (eg, the connection terminal 278) may be omitted, or one or more other components may be added to the electronic device 201. In some embodiments, some of these components (e.g., sensor module 276, camera module 280, or antenna module 297) are integrated into one component (e.g., display module 260). It can be.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

도 3은 일 실시예에 따른 피제어 장치들을 포함하는 네트워크를 설명하기 위한 도면이다. FIG. 3 is a diagram illustrating a network including controlled devices according to an embodiment.

도 3을 참조하면, 네트워크(300)는 IoT 클라우드로서 동작하는 서버(310), 네트워크 통신(예를 들어 인터넷)을 통해 서버(310)와 통신할 수 있는 전자 장치(201), 및 IoT 기술을 지원하며 네트워크 통신(예를 들어 인터넷)을 통해 서버(310)와 통신할 수 있는 적어도 하나의 외부 전자 장치(320)(예를 들어 피제어 장치들(controlled devices)(320a, 320b, 320c, 320d, 320e))를 포함할 수 있다. 일 실시예에서 피제어 장치(320)와 전자 장치(201) 간의 연결 및/또는 피제어 장치(320)와 서버(310) 간의 연결을 지원하는 허브 장치(330)가 네트워크(300)에 더 포함될 수 있다. 일 실시예에서 전자 장치(201)는 허브 장치(330)를 통해, 서버(310)를 통해, 원거리 무선 통신(예를 들어 제2 네트워크(299))을 통해, 또는 근거리 무선 통신(예를 들어 제1 네트워크(298))을 통해, 피제어 장치(320)와 통신할 수 있다.Referring to FIG. 3, the network 300 includes a server 310 operating as an IoT cloud, an electronic device 201 capable of communicating with the server 310 through network communication (e.g., the Internet), and IoT technology. At least one external electronic device 320 (e.g., controlled devices 320a, 320b, 320c, 320d) that supports and can communicate with the server 310 through network communication (e.g., the Internet) , 320e)). In one embodiment, a hub device 330 that supports a connection between the controlled device 320 and the electronic device 201 and/or a connection between the controlled device 320 and the server 310 may be further included in the network 300. You can. In one embodiment, the electronic device 201 is connected via hub device 330, via server 310, via long-range wireless communication (e.g., second network 299), or short-range wireless communication (e.g., It is possible to communicate with the controlled device 320 through the first network 298).

일 실시예에서 피제어 장치(320)는 원격 명령(예를 들어 전자 장치(201)의 제어 명령)에 의해 제어(예를 들어 상태 보고 및/또는 특정 기능을 실행)될 수 있으며, 예를 들어 텔레비전, 에어컨, 냉장고, 세탁기, 조명 기기, 보안 카메라, 센서, 또는 윈도우 트리트먼트(window treatment) 중 적어도 하나를 포함할 수 있다. 피제어 장치(320)는 허브 장치(330)를 통해 전자 장치(201)와 통신하거나, 서버(310)를 통해 전자 장치(201)와 통신하거나 및/또는 전자 장치(201)와 직접(예를 들어 서버(310) 또는 허브 장치(330)를 통하지 않고) 통신할 수 있다. 일 실시예에서 피제어 장치(320)는 원거리 무선 통신(예를 들어 제2 네트워크(299))을 통해, 또는 근거리 무선 통신(예를 들어 제1 네트워크(298))을 통해 전자 장치(201)와 통신하도록 구성될 수 있다. 일 실시예에서 피제어 장치(320)는 원거리 무선 통신(예를 들어 제2 네트워크(299))을 통해, 또는 근거리 무선 통신(예를 들어 제1 네트워크(298))을 통해 서버(310)와 통신하도록 구성될 수 있다.In one embodiment, the controlled device 320 may be controlled (e.g., report status and/or execute a specific function) by a remote command (e.g., a control command of the electronic device 201), for example It may include at least one of a television, air conditioner, refrigerator, washing machine, lighting device, security camera, sensor, or window treatment. The controlled device 320 communicates with the electronic device 201 through the hub device 330, communicates with the electronic device 201 through the server 310, and/or directly with the electronic device 201 (e.g. For example, communication can be performed (without going through the server 310 or the hub device 330). In one embodiment, the controlled device 320 is connected to the electronic device 201 via long-range wireless communication (e.g., the second network 299) or short-range wireless communication (e.g., the first network 298). It may be configured to communicate with. In one embodiment, the controlled device 320 is connected to the server 310 through long-distance wireless communication (e.g., the second network 299) or short-range wireless communication (e.g., the first network 298). Can be configured to communicate.

일 실시예에서 전자 장치(201)는 예를 들어 스마트 폰, 태블릿, 또는 웨어러블 장치와 같은 개인용 전자 장치가 되거나 텔레비전이나 제어 콘솔과 같이 디스플레이와 사용자 인터페이스를 구비하는 전자 장치가 될 수 있다. 전자 장치(201)는 피제어 장치(320)를 발견할 수 있고, 발견된 피제어 장치(320)를 서버(310)에 등록하는 등록 절차를 실행할 수 있다. 피제어 장치(320)는 사용자 계정과 연관되도록 서버(310)에 등록될 수 있다. 전자 장치(201)는 사용자 계정을 이용하여, 서버(310)에 등록된 피제어 장치(320)를 모니터링하고 제어할 수 있다. In one embodiment, the electronic device 201 may be a personal electronic device, such as a smart phone, tablet, or wearable device, or an electronic device that includes a display and a user interface, such as a television or control console. The electronic device 201 can discover the controlled device 320 and execute a registration procedure to register the discovered controlled device 320 with the server 310. The controlled device 320 may be registered with the server 310 to be associated with a user account. The electronic device 201 can monitor and control the controlled device 320 registered with the server 310 using the user account.

일 실시예에서 전자 장치(201)는 사용자가 IoT 제어 서비스에 이용할 피제어 장치(320)의 상태를 확인하거나, 피제어 장치(320)를 제어(예를 들어 특정 기능을 실행할 것을 지시하는 제어 명령을 전송)할 수 있다. 일 실시예에서 전자 장치(201)는 네트워크(300)에 포함되는 오너(owner) 장치가 될 수 있다. 일 실시예에서, 도시하지 않을 것이지만 전자 장치(201)의 적어도 일부 기능 및/또는 권한을 포함하는 적어도 하나의 멤버 장치가 네트워크(300)에 포함될 수 있다. 일 실시예에서 멤버 장치는 피제어 장치(320)에 대한 등록 절차를 실행하지는 못하지만, 서버(310)에 등록된 피제어 장치(320)의 상태를 확인하거나 제어하는 기능을 실행할 수 있다.In one embodiment, the electronic device 201 checks the status of the controlled device 320 that the user will use for the IoT control service, or controls the controlled device 320 (for example, a control command instructing to execute a specific function) can be transmitted). In one embodiment, the electronic device 201 may be an owner device included in the network 300. In one embodiment, at least one member device that includes at least some functions and/or permissions of the electronic device 201, although not shown, may be included in the network 300. In one embodiment, the member device cannot perform a registration procedure for the controlled device 320, but can perform a function to check or control the status of the controlled device 320 registered in the server 310.

일 실시예에서 허브 장치(330)는 IoT 제어 서비스를 운용하는 전자 장치로서, 건물(홈 또는 호텔) 내에 배치되는 서버 또는 게이트웨이, 또는 건물 외부에 배치되는 원격 서버일 수 있다. 일 실시예에서 허브 장치(330)는 허브 기능을 가지는 스마트폰, 태블릿, PC(personal computer), 또는 TV와 같은 가전제품일 수 있다. 허브 장치(330)는 후술되는 실시예들 중 적어도 하나에 따라 피제어 장치(320)와 유사하게 전자 장치(201)를 통해 서버(310)에 등록될 수 있다. In one embodiment, the hub device 330 is an electronic device that operates an IoT control service and may be a server or gateway placed within a building (home or hotel), or a remote server placed outside the building. In one embodiment, the hub device 330 may be a home appliance such as a smartphone, tablet, personal computer (PC), or TV that has a hub function. The hub device 330 may be registered with the server 310 through the electronic device 201 similarly to the controlled device 320 according to at least one of the embodiments described later.

도 4는 일 실시예에 따라 전자 장치에 표시되는 피제어 장치의 상태를 설명하기 위한 도면이다.FIG. 4 is a diagram for explaining the status of a controlled device displayed on an electronic device, according to an embodiment.

도 4를 참조하면, 전자 장치(201)는 IoT 제어 서비스를 위한 클라이언트 어플리케이션을 실행하고 상기 클라이언트 어플리케이션에 의해 제공되는 실행 화면(400)을 디스플레이 모듈(예를 들어 디스플레이 모듈(260))을 통해 표시할 수 있다. 실행 화면(400)은 사용자 계정에 대해 등록된 적어도 하나의 외부 전자 장치(예를 들어 피제어 장치(320))의 상태들(예를 들어 이미지, 위치, 이름, 또는 연결 상태 중 적어도 하나)을 포함할 수 있다. Referring to FIG. 4, the electronic device 201 executes a client application for an IoT control service and displays an execution screen 400 provided by the client application through a display module (e.g., display module 260). can do. The execution screen 400 displays the states (e.g., at least one of image, location, name, or connection status) of at least one external electronic device (e.g., controlled device 320) registered for the user account. It can be included.

일 실시예에서 피제어 장치(320)의 인터넷 연결이 끊겨 있는 경우 실행 화면(400)은 피제어 장치(320)가 오프라인 상태임을 표시하는 상태 항목(예를 들어 상태 항목(410))을 포함할 수 있다. 예를 들어, 전자 장치(101)는 서버(310)로부터 피제어 장치(320)가 오프라인 상태임에 대한 정보를 수신함에 기반하여, 피제어 장치(320)가 오프라인 상태임을 표시하는 상태 항목(410)을 표시할 수 있다. 일 실시예에서 오프라인 상태인 피제어 장치(320)의 상태 항목(410)은 흑백으로 표시될 수 있다. 도시하지 않을 것이나 온라인 상태인 피제어 장치의 상태 항목은 컬러로 표시될 수 있다. 도시하지 않을 것이나, 상태 항목(410)에 대한 사용자 입력(예를 들어 터치)이 수신되는 경우 전자 장치(201)는 피제어 장치(320)가 오프라인 상태임을 알리는 오프라인 가이드 팝업을 표시할 수 있다. 예를 들어 오프라인 가이드 팝업은 "장치의 전원 코드가 제대로 꽂혀 있는지 확인해 보세요", "장치의 전원이 정상적으로 켜지는지 확인해 보세요", "휴대 전화가 네트워크에 연결되었는지 확인하세요", 또는 "장치가 연결된 Wi-Fi 공유기가 제대로 작동하는지 확인하세요"와 같은 일반적인 조치 가이드를 포함할 수 있다.In one embodiment, when the controlled device 320 is disconnected from the Internet, the execution screen 400 may include a status item (e.g., status item 410) indicating that the controlled device 320 is offline. You can. For example, based on receiving information about the controlled device 320 being offline from the server 310, the electronic device 101 displays a status item 410 indicating that the controlled device 320 is offline. ) can be displayed. In one embodiment, the status item 410 of the controlled device 320 that is offline may be displayed in black and white. Although not shown, status items of controlled devices that are online may be displayed in color. Although not shown, when a user input (for example, a touch) for the status item 410 is received, the electronic device 201 may display an offline guide pop-up indicating that the controlled device 320 is offline. For example, the offline guide pop-up might say, "Make sure your device's power cord is plugged in properly," "Make sure your device powers on properly," "Make sure your phone is connected to the network," or "Make sure your device is connected to the Wi-Fi network." You can include general action guides such as "Make sure your Fi router is working properly."

도 5는 일 실시예에 따라 피제어 장치들을 포함하는 시스템 아키텍처를 설명하기 위한 도면이다.FIG. 5 is a diagram for explaining a system architecture including controlled devices according to an embodiment.

도 5를 참조하면, 전자 장치(201)는 적어도 하나의 외부 전자 장치(예를 들어 피제어 장치(320))를 서버(310)에 등록하고, 등록된 피제어 장치(320)를 원격으로 제어하도록 구성되는 클라이언트 어플리케이션을 포함할 수 있다. 피제어 장치(320)는 예를 들어 허브 연결(hub-connected)(502), 직접 연결(direct-connected)(504), 또는 클라우드 간 연결(cloud-to-cloud)(506) 중 적어도 하나를 사용하여 서버(310)에 연결할 수 있다. 허브 연결 방식(502)은 예를 들어 Zig-bee, Z-wave, 또는 LAN과 같은 통신 기능을 을 가지는 허브를 통해 피제어 장치(320)를 서버(310)에 연결할 수 있다. 직접 연결 방식(504)에서 피제어 장치(320)는 Wi-Fi 액세스 포인트(AP)와 직접 연결하고 AP를 통해 서버(310)와 연결할 수 있다. 클라우드간 연결 방식(506)에서 피제어 장치(320)는 제3자 클라우드(third-party cloud)에 등록될 수 있으며, 제3자 클라우드를 통해 API(application programming interface)를 사용하여 서버(310)와 연결할 수 있다. Referring to FIG. 5, the electronic device 201 registers at least one external electronic device (e.g., the controlled device 320) with the server 310 and remotely controls the registered controlled device 320. It may include a client application configured to do so. The controlled device 320 is, for example, at least one of hub-connected (502), direct-connected (504), or cloud-to-cloud (506). You can connect to the server 310 using . The hub connection method 502 may connect the controlled device 320 to the server 310 through a hub having a communication function such as Zig-bee, Z-wave, or LAN. In the direct connection method 504, the controlled device 320 can connect directly to a Wi-Fi access point (AP) and connect to the server 310 through the AP. In the inter-cloud connection method 506, the controlled device 320 may be registered in a third-party cloud, and the server 310 may be connected to the server 310 using an API (application programming interface) through the third-party cloud. You can connect with.

일 실시예에서 서버(310)는 피제어 장치(320)의 제조사가 등록하는 장치 정보를 관리하는 프론트엔드(frontend) 서버(도시하지 않음)를 포함할 수 있고, 피제어 장치(320)가 프론트엔드 서버에 지원 장치로서 등록됨을 확인함으로써 피제어 장치(320)을 인증하고, 인증이 완료된 피제어 장치(320)를 지원 장치 목록에 포함시켜 관리할 수 있다. 전자 장치(201)는 서버(310)의 지원 관리 목록에 포함된 피제어 장치(320)를 클라이언트 어플리케이션을 사용하여 서버(310)에 등록(예를 들어 온보딩)할 수 있다. 등록(또는 온보딩)은 전자 장치(201)의 클라이언트 어플리케이션을 통해 피제어 장치(320)와 관련된 장치 정보를 서버(310)에 저장하는 절차를 의미할 수 있다.In one embodiment, the server 310 may include a front-end server (not shown) that manages device information registered by the manufacturer of the controlled device 320, and the controlled device 320 By confirming that it is registered as a support device on the end server, the controlled device 320 can be authenticated, and the authenticated controlled device 320 can be included in the list of supported devices and managed. The electronic device 201 may register (eg, onboard) the controlled device 320 included in the support management list of the server 310 with the server 310 using a client application. Registration (or onboarding) may refer to a process of storing device information related to the controlled device 320 on the server 310 through a client application of the electronic device 201.

일 실시예에서 피제어 장치(320)가 직접 연결 방식(504)을 사용하여 서버(410)와 연결될 때 예를 들어 장치 문제, 네트워크 장애, 클라우드 장애 또는 어플리케이션 장애와 같은 원인으로 인해 오프라인 상태가 될 수 있다. 피제어 장치(320)와 서버(310)간 연결이 끊어진 경우 전자 장치(201)는 피제어 장치(320)의 상태 항목(예를 들어 상태 항목(410))을 오프라인 상태로 표시할 수 있다.In one embodiment, when the controlled device 320 is connected to the server 410 using the direct connection method 504, it may go offline due to causes such as, for example, device problems, network failures, cloud failures, or application failures. You can. When the connection between the controlled device 320 and the server 310 is lost, the electronic device 201 may display the status item (for example, the status item 410) of the controlled device 320 as offline.

도 6은 일 실시예에 따라 피제어 장치의 직접 연결 진단을 제공하는 절차를 설명하는 흐름도이다. 후술되는 동작들 중 적어도 하나는 전자 장치(201)의 프로세서(예를 들어 프로세서(220))에 의해 실행될 수 있다. 후술되는 동작들 중 적어도 일부는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 6 is a flowchart illustrating a procedure for providing direct connection diagnosis of a controlled device according to an embodiment. At least one of the operations described later may be executed by a processor (eg, processor 220) of the electronic device 201. At least some of the operations described below may be omitted, modified, or changed in order.

도 6을 참조하면, 동작 605에서 전자 장치(201)(예를 들어 프로세서(220))는 오프라인 상태인 피제어 장치(예를 들어 피제어 장치(320))의 장치 정보를 서버(310)로부터 수신할 수 있다. 일 실시예에서 상기 장치 정보는 피제어 장치(320)가 직접 연결 진단(direct connection diagnostics: DCD)을 지원하는지의 여부를 나타내는 진단 성능 정보(diagnostics capability information)를 포함할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(예를 들어 피제어 장치(320))가 오프라인 상태임을 서버(310)로부터 수신하고, 피제어 장치(320)의 상기 장치 정보를 서버(310)로 요청하여 수신할 수 있다. Referring to FIG. 6, in operation 605, the electronic device 201 (e.g., processor 220) receives device information of an offline controlled device (e.g., controlled device 320) from the server 310. You can receive it. In one embodiment, the device information may include diagnostics capability information indicating whether the controlled device 320 supports direct connection diagnostics (DCD). In one embodiment, the electronic device 201 (e.g., the processor 220) receives from the server 310 that the controlled device (e.g., the controlled device 320) is offline, and the controlled device 320 ) can be received by requesting the device information from the server 310.

동작 610에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 장치 정보를 기반으로 피제어 장치(320)를 위한 직접 연결 진단이 지원되는지 여부를 판단할 수 있다. 직접 연결 진단이 지원되지 않는 경우 동작 650에서 전자 장치(201)(예를 들어 프로세서(220))는 일반 진단 절차(basic diagnostics 또는 basic analysis)(예를 들어 도 7의 동작 720)를 실행할 수 있다. 반면 직접 연결 진단(direct connection diagnostics 또는 detailed analysis)이 지원되는 경우 전자 장치(201)(예를 들어 프로세서(220))는 동작 615로 진행할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)가 DCD를 지원함을 이미 알고 있을 수 있으며, 동작 610은 생략될 수 있다.In operation 610, the electronic device 201 (eg, processor 220) may determine whether direct connection diagnosis for the controlled device 320 is supported based on the device information. If direct connection diagnosis is not supported, in operation 650, the electronic device 201 (e.g., processor 220) may execute general diagnostic procedures (basic diagnostics or basic analysis) (e.g., operation 720 of FIG. 7). . On the other hand, if direct connection diagnostics (or detailed analysis) is supported, the electronic device 201 (eg, processor 220) may proceed to operation 615. In one embodiment, the electronic device 201 (e.g., the processor 220) may already know that the controlled device 320 supports DCD, and operation 610 may be omitted.

동작 615에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)와의 통신 연결(예를 들어 D2D 연결)을 위해 상기 장치 정보를 이용하여 사용자에게 가이드 화면(예를 들어 도 18b의 가이드 화면(1804))을 제공할 수 있다. 일 실시예에서 상기 가이드 화면은 전자 장치(201)와 피제어 장치(320)의 D2D 연결을 가이드하기 위한 정보로서, 예를 들어, 피제어 장치(320)의 장치 이미지와 가이드 문구(예를 들어 "장치의 전원을 켜고 AP가 나타날 때까지 버튼을 3초 이상 누르세요")를 포함할 수 있다. 일 실시예에서 상기 가이드 화면은 상기 D2D 연결을 시작하기 위한 오브젝트(예를 들어 입력 버튼)를 더 포함할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 장치 정보에 포함되는 정보(예를 들어 mnID 및/또는 setupId)를 이용하여 상기 가이드 화면의 구성에 필요한 셋업 데이터(예를 들어 장치 이미지와 가이드 문구)를 서버(310)로부터 수신할 수 있다. 일 실시예에서 서버(310)는 상기 정보를 근거로 피제어 장치(320)가 서버(310)에 등록되어 있음을 식별하고 상기 셋업 데이터를 전자 장치(201)로 제공할 수 있다.In operation 615, the electronic device 201 (e.g., processor 220) uses the device information to establish a communication connection (e.g., D2D connection) with the controlled device 320 to display a guide screen (e.g., A guide screen 1804 in FIG. 18B may be provided. In one embodiment, the guide screen is information for guiding the D2D connection between the electronic device 201 and the controlled device 320, for example, a device image of the controlled device 320 and a guide text (e.g. “Power on the device and press the button for at least 3 seconds until the AP appears”). In one embodiment, the guide screen may further include an object (eg, an input button) for starting the D2D connection. In one embodiment, the electronic device 201 (e.g., processor 220) uses the information included in the device information (e.g., mnID and/or setupId) to generate setup data (e.g., setup data necessary for configuring the guide screen). For example, a device image and guide text) may be received from the server 310. In one embodiment, the server 310 may identify that the controlled device 320 is registered with the server 310 based on the above information and provide the setup data to the electronic device 201.

동작 620에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)와 D2D 연결을 수립(establish)할 수 있다. 일 실시예에서 상기 D2D 연결은 소프트 AP, 블루투스(예를 들어 블루투스 클래식, 블루투스 래거시, 또는 저전력 블루투스(Bluetooth low energy: BLE)), 또는 IP(internet protocol) 네트워크의 HTTP(hypertext transfer protocol)를 기반으로 수립될 수 있다.In operation 620, the electronic device 201 (eg, processor 220) may establish a D2D connection with the controlled device 320. In one embodiment, the D2D connection uses soft AP, Bluetooth (e.g., Bluetooth classic, Bluetooth legacy, or Bluetooth low energy (BLE)), or hypertext transfer protocol (HTTP) of an internet protocol (IP) network. It can be established based on

동작 625에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 D2D 연결을 통해 피제어 장치(320)의 소유권을 확인하기 위한 절차를 실행할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)와 관련된 입력 정보를 기반으로 사용자가 피제어 장치(320)를 소유하고 있음을 확인할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)로부터 제공받은 개인 식별 번호(personal identification number: PIN)가 사용자로부터 입력된 PIN과 일치하는지 판단함으로써 사용자가 피제어 장치(320)를 소유하고 있음을 확인할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)의 표면에 부착되거나 프린트된 검증 지표(verification indicia)(예를 들어 QR(quick response) 코드 또는 바 코드)를 캡처하거나, 피제어 장치(320)의 특정 버튼이 입력됨을 알리는 신호를 피제어 장치(320)로부터 수신하거나, 피제어 장치(320)를 통해 생체 정보 또는 패스워드를 수신함으로써, 사용자가 피제어 장치(320)를 소유하고 있음을 확인할 수 있다.In operation 625, the electronic device 201 (eg, processor 220) may execute a procedure to confirm ownership of the controlled device 320 through the D2D connection. In one embodiment, the electronic device 201 (eg, the processor 220) may confirm that the user owns the controlled device 320 based on input information related to the controlled device 320. In one embodiment, the electronic device 201 (e.g., the processor 220) determines whether the personal identification number (PIN) provided by the controlled device 320 matches the PIN entered by the user, thereby It can be confirmed that the controlled device 320 is owned. In one embodiment, the electronic device 201 (e.g., processor 220) displays a verification indicator (e.g., a quick response (QR) code or bar) attached or printed on the surface of the controlled device 320. code), receiving a signal from the controlled device 320 indicating that a specific button of the controlled device 320 is input, or receiving biometric information or a password through the controlled device 320, so that the user can It can be confirmed that the control device 320 is owned.

일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 소유권 확인을 통해 피제어 장치(320)의 크리덴셜(credential) 정보(예를 들어 피제어 장치(320)의 장치 ID)를 저장할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))가 피제어 장치(320)의 크리덴셜 정보를 이미 가지고 있는 경우 동작 625는 생략될 수 있다. In one embodiment, the electronic device 201 (e.g., processor 220) provides credential information (e.g., device ID of the controlled device 320) of the controlled device 320 through ownership verification. can be saved. In one embodiment, if the electronic device 201 (eg, processor 220) already has credential information of the controlled device 320, operation 625 may be omitted.

일 실시예에서 전자 장치(201)는 피제어 장치(320)의 등록 절차를 실행한 오너 장치이거나, 또는 오너 장치가 소유권을 허용한 멤버 장치일 수 있다. 전자 장치(201)가 멤버 장치인 경우 전자 장치(201)는 오너 장치로부터 수신하거나 또는 피제어 장치(320)로부터 수신한 크리덴셜 정보를 이용하여 피제어 장치(320)의 소유권을 확인할 수 있다.In one embodiment, the electronic device 201 may be an owner device that has performed the registration procedure of the controlled device 320, or may be a member device whose ownership has been permitted by the owner device. When the electronic device 201 is a member device, the electronic device 201 can confirm ownership of the controlled device 320 using credential information received from the owner device or the controlled device 320.

동작 630에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)로부터 오프라인 에러 코드를 포함하는 연결 정보를 수신할 수 있다. 일 실시예에서 상기 오프라인 에러 코드는 클라우드 에러, 네트워크 에러, 또는 미확인 에러(unknown error) 중 적어도 하나에 대한 코드를 포함할 수 있다.In operation 630, the electronic device 201 (eg, processor 220) may receive connection information including an offline error code from the controlled device 320. In one embodiment, the offline error code may include a code for at least one of a cloud error, a network error, or an unknown error.

동작 635에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)로부터 장치 로그 데이터를 수신할 수 있다. 일 실시예에서 상기 장치 로그 데이터는 피제어 장치(320)의 동작 이력(예를 들어 전원 온, 기능 실행, 상태 변경, 에러 발생, 또는 전원 오프 중 적어도 하나)을 포함할 수 있다. 일 실시예에서 동작 635는 생략될 수 있다.In operation 635, the electronic device 201 (eg, processor 220) may receive device log data from the controlled device 320. In one embodiment, the device log data may include the operation history of the controlled device 320 (for example, at least one of power on, function execution, status change, error occurrence, or power off). In one embodiment, operation 635 may be omitted.

동작 640에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 오프라인 에러 코드 및/또는 상기 장치 로그 데이터를 기반으로 피제어 장치(320)에게 복구 명령을 전송할 수 있고, 서버(310)에게 피제어 장치(320)의 상태를 확인할 수 있다. 일 실시예에서 상기 복구 명령은 동작 620에서 수립된 D2D 연결을 통해 피제어 장치(320)에게로 전달될 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 상기 오프라인 에러 코드를 기반으로 처리된 피제어 장치(320)의 오프라인 상태와 관련된 조치 가이드 화면을 표시할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 서버(310)로부터 피제어 장치(320)가 서버(310)에 연결되어 있음을 알리는 응답 메시지를 수신함으로써 피제어 장치(320)가 정상적으로 복구되었다고 판단할 수 있다.In operation 640, the electronic device 201 (e.g., the processor 220) may transmit a recovery command to the controlled device 320 based on the offline error code and/or the device log data, and the server 310 You can check the status of the controlled device 320. In one embodiment, the recovery command may be delivered to the controlled device 320 through the D2D connection established in operation 620. In one embodiment, the electronic device 201 (eg, the processor 220) may display an action guide screen related to the offline state of the controlled device 320 processed based on the offline error code. In one embodiment, the electronic device 201 (e.g., the processor 220) receives a response message from the server 310 indicating that the controlled device 320 is connected to the server 310, thereby 320) can be judged to have been restored normally.

일 실시예에서 상기 복구 명령이 피제어 장치(320)에 수신되지 못하였거나, 피제어 장치(320)가 상기 복구 명령에 따른 자체 진단을 정상적으로 수행하지 못하였거나, 또는 피제어 장치(320)가 상기 자체 진단을 수행하였음에도 불구하고 서버(310)에 연결되지 못한 경우, 서버(310)는 피제어 장치(320)를 여전히 오프라인 상태로 관리할 수 있고, 전자 장치(201)(예를 들어 프로세서(220))는 서버(310)로부터 피제어 장치(320)가 연결되지 않음을 알리는 응답 메시지를 수신하게 될 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)가 오프라인 상태임을 알리거나, 피제어 장치(320)의 자체 진단이 실패하였음을 알리는 메시지를 출력할 수 있다.In one embodiment, the recovery command was not received by the controlled device 320, the controlled device 320 failed to properly perform self-diagnosis according to the recovery command, or the controlled device 320 failed to perform the self-diagnosis according to the recovery command. If connection to the server 310 is not possible despite performing self-diagnosis, the server 310 may still manage the controlled device 320 in an offline state, and the electronic device 201 (e.g., processor 220 )) may receive a response message from the server 310 indicating that the controlled device 320 is not connected. In one embodiment, the electronic device 201 (e.g., the processor 220) outputs a message notifying that the controlled device 320 is offline or that the self-diagnosis of the controlled device 320 has failed. You can.

동작 645에서 전자 장치(201)(예를 들어 프로세서(220))는 피제어 장치(320)의 에러 핸들링이 완료됨을 알리기 위한 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 에러 보고 메시지는 상기 연결 정보(예를 들어 오프라인 에러 코드) 및/또는 상기 장치 로그 데이터를 포함할 수 있다. 일 실시예에서 전자 장치(201)(예를 들어 프로세서(220))는 에러 보고를 위한 오브젝트(예를 들어 에러 보고 버튼(1906))를 포함하는 에러 보고 가이드 화면을 표시할 수 있고, 상기 에러 보고 버튼에 대한 사용자 입력을 수신함에 응답하여 상기 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 에러 보고 버튼에 대한 사용자 입력이 수신되지 않은 경우, 또는 오프라인 에러 코드에 따라 에러 보고가 불필요하다고 판단되는 경우 전자 장치(201)는 동작 645를 생략할 수 있다.In operation 645, the electronic device 201 (eg, the processor 220) may transmit an error reporting message to the server 310 to notify that error handling of the controlled device 320 is complete. In one embodiment, the error reporting message may include the connection information (eg, offline error code) and/or the device log data. In one embodiment, the electronic device 201 (e.g., processor 220) may display an error reporting guide screen including an object for error reporting (e.g., error reporting button 1906), and The error reporting message may be transmitted to the server 310 in response to receiving a user input to the report button. In one embodiment, when a user input for the error reporting button is not received, or when error reporting is determined to be unnecessary based on an offline error code, the electronic device 201 may omit operation 645.

도 7은 일 실시예에 따른 진단 절차를 설명하기 위한 도면이다.Figure 7 is a diagram for explaining a diagnostic procedure according to an embodiment.

도 7을 참조하면, 전자 장치(201)는 오프라인 상태인 적어도 하나의 피제어 장치(320)의 정보를 포함하는 오프라인 진단 화면(700)를 표시할 수 있다. 일 실시예에서 오프라인 진단 화면(700)은 피제어 장치(320)(예를 들어 TV)에 대응하는 상태 항목(705)을 포함할 수 있다. 상태 항목(705)에 대한 사용자 입력(710)을 수신함에 따라 전자 장치(201)는 동작 715에서 피제어 장치(320)가 DCD를 지원하는지 여부를 판단할 수 있다.Referring to FIG. 7 , the electronic device 201 may display an offline diagnosis screen 700 including information on at least one controlled device 320 that is offline. In one embodiment, the offline diagnosis screen 700 may include a status item 705 corresponding to the controlled device 320 (e.g., TV). Upon receiving the user input 710 for the status item 705, the electronic device 201 may determine whether the controlled device 320 supports DCD in operation 715.

일 실시예에서 전자 장치(201)는 오프라인 상태인 피제어 장치(320)가 DCD를 지원하는지의 여부를 확인하기 위해 서버(310)로부터 피제어 장치(320)의 장치 정보를 수신하고, 상기 장치 정보에 피제어 장치(320)의 DCD 지원 필드가 포함되어 있는 경우 피제어 장치(320)가 DCD를 지원하는 것으로 판단할 수 있다. 상기 장치 정보는 장치 등록을 위한 기본 정보를 나타내는 장치 프로파일을 포함할 수 있으며, 제조사에 의해 정의될 수 있다. 상기 장치 프로파일은 예를 들어 전자 장치(201)에서 펌웨어 업데이트를 통해 서버(310)로부터 수신될 수 있다. 일 실시예에서 상기 장치 정보는 피제어 장치(320)가 DCD를 지원하는지 여부를 나타내는 진단 성능 정보를 포함할 수 있다.In one embodiment, the electronic device 201 receives device information of the controlled device 320 from the server 310 to check whether the offline controlled device 320 supports DCD, and the device If the information includes a DCD support field of the controlled device 320, it can be determined that the controlled device 320 supports DCD. The device information may include a device profile representing basic information for device registration and may be defined by the manufacturer. The device profile may be received from the server 310 through, for example, a firmware update in the electronic device 201. In one embodiment, the device information may include diagnostic performance information indicating whether the controlled device 320 supports DCD.

피제어 장치(320)가 DCD를 지원하지 않는 경우 전자 장치(201)는 일반 진단(basic diagnostics) 절차(720)를 실행할 수 있다. 일 실시예에서 일반 진단 절차(720)는 피제어 장치(320)를 위한 클라이언트 어플리케이션(예를 들어 소프트웨어 버전)을 검사하는 동작(722), 전자 장치(201)에서 Wi-Fi 연결을 검사하는 동작(724), 미리 정의된 일반 진단을 실행하는 동작(726) 및 결과를 표시하는 동작(728)을 포함할 수 있다.If the controlled device 320 does not support DCD, the electronic device 201 may execute a basic diagnostics procedure 720. In one embodiment, the general diagnostic procedure 720 includes an operation 722 for checking a client application (e.g., software version) for the controlled device 320 and an operation for checking a Wi-Fi connection in the electronic device 201. It may include (724), an operation (726) of executing a predefined general diagnosis, and an operation (728) of displaying the results.

피제어 장치(320)가 DCD를 지원하는 경우 전자 장치(201)는 직접 연결 진단(DCD) 절차(730)를 실행할 수 있다. 일 실시예에서 DCD 절차(730)는 일반 진단을 실행하는 동작(732), 오프라인 상태인 피제어 장치(320)과 직접 연결하는 동작(734), 미리 정의된 직접 연결 진단을 실행하는 동작(736), 및 결과를 표시하는 동작(738)을 포함할 수 있다. DCD 절차(730)는 일반 진단 절차(720)에 비해 전자 장치(201)가 피제어 장치(320)에 직접 접속하고 진단과 관련된 정보(예를 들어 연결 정보 및/또는 장치 로그 데이터)를 획득하는 동작을 더 포함할 수 있다. 전자 장치(201)가 피제어 장치(320)에 접속할 수 있도록 하기 위해 피제어 장치(320)는 연결을 준비하는 동작(예를 들어 세탁기의 특정 버튼을 누름)을 실행할 수 있다.If the controlled device 320 supports DCD, the electronic device 201 may execute a direct connection diagnosis (DCD) procedure 730. In one embodiment, the DCD procedure 730 includes an operation 732 for executing a general diagnosis, an operation 734 for directly connecting to an offline controlled device 320, and an operation 736 for executing a predefined direct connection diagnosis. ), and an operation 738 for displaying the results. Compared to the general diagnosis procedure 720, the DCD procedure 730 allows the electronic device 201 to directly connect to the controlled device 320 and obtain information related to diagnosis (e.g., connection information and/or device log data). Additional actions may be included. In order for the electronic device 201 to connect to the controlled device 320, the controlled device 320 may perform an operation to prepare for connection (for example, pressing a specific button on a washing machine).

하기의 <표 1>은 일 실시예에 따른 진단 성능 정보의 일 예를 나타낸 것이다.Table 1 below shows an example of diagnostic performance information according to an embodiment.

AttributesAttributes ValueValue DescriptionDescription logTypelogType errCode, dumperrCode, dump 로깅 방식Logging method endpointendpoint PIPER, SSMPIPER, SSM Logging system endpointLogging system endpoint minVersionminVersion 1.01.0 오프라인 진단 서비스 버전Offline Diagnostic Service Version setupIdsetupId XXXXXX 온보딩 IDOnboarding ID protocolTypeprotocolType Ble_ocf, wifi_https, ble_stdkble_ocf, wifi_https, ble_stdk 오프라인 진단 서비스 프로토콜Offline Diagnostic Service Protocol mnIdmnId SSSSSS 제조사 IDManufacturer ID dumpTypedumpType File, idFile, id 기기 로그 전달 방식Device log delivery method

일 실시예에서 진단 성능 정보는 'logType' 속성, 'endpoint' 속성, 'minVersion' 속성, 'setupId' 속성, 'protocolType' 속성, 'mnId' 속성, 또는 'dumpType' 속성 중 적어도 하나를 포함할 수 있다. 일 실시예에서 mnId는 제조사 ID를 나타낼 수 있고, setupId는 서버(310)에 등록될 때 부여되는 온보딩 ID를 나타낼 수 있고, protocolType은 오프라인 진단을 위해 사용될 서비스 프로토콜(예를 들어 BLE 또는 Wi-Fi HTTPS)을 나타낼 수 있다.In one embodiment, the diagnostic performance information may include at least one of the 'logType' attribute, the 'endpoint' attribute, the 'minVersion' attribute, the 'setupId' attribute, the 'protocolType' attribute, the 'mnId' attribute, or the 'dumpType' attribute. there is. In one embodiment, mnId may represent a manufacturer ID, setupId may represent an onboarding ID given when registering with the server 310, and protocolType may represent a service protocol to be used for offline diagnosis (e.g., BLE or Wi-Fi). Fi HTTPS).

일 실시예에서 전자 장치(201)는 피제어 장치(320)의 mnId 및 setupId를 이용해서 피제어 장치(320)의 장치 이미지(예를 들어 외형 이미지)와 가이드 문구를 포함하는 셋업 데이터를 서버(310)로부터 수신하고, 상기 셋업 데이터를 기반으로 전자 장치(201)와 피제어 장치(320) 간의 통신 연결(예를 들어 D2D 연결)을 가이드하기 위한 가이드 화면을 구성할 수 있다. 상기 D2D 연결은 전자 장치(201)와 피제어 장치(320) 간에 디스커버리 방식(예를 들어 Soft-AP, BLE, 또는 On IP network에 기반함)에 따라 연결하는 동작을 의미할 수 있다. 일 실시예에서 Soft-AP 방식을 사용하는 경우 가이드 화면은 피제어 장치(320)의 특정 버튼 또는 버튼들의 조합을 눌러서 피제어 장치(320)를 Soft-AP 모드로 동작 시키도록 가이드할 수 있다. 일 실시예에서 BLE 방식을 사용하는 경우 가이드 화면은 피제어 장치(320)가 일정 간격으로 애드버타이징 신호를 방송하는 것을 가이드할 수 있다. BLE 방식의 D2D 연결은 일반적으로 GATT(generic attribute profile) 연결을 포함할 수 있다. In one embodiment, the electronic device 201 uses the mnId and setupId of the controlled device 320 to send setup data including a device image (e.g., external image) and a guide phrase of the controlled device 320 to the server ( 310), and a guide screen for guiding a communication connection (for example, D2D connection) between the electronic device 201 and the controlled device 320 can be configured based on the setup data. The D2D connection may refer to an operation of connecting between the electronic device 201 and the controlled device 320 according to a discovery method (for example, based on Soft-AP, BLE, or On IP network). In one embodiment, when using the Soft-AP method, the guide screen may guide the controlled device 320 to operate in Soft-AP mode by pressing a specific button or combination of buttons on the controlled device 320. In one embodiment, when using the BLE method, the guide screen may guide the controlled device 320 to broadcast advertising signals at regular intervals. BLE-based D2D connections may generally include GATT (generic attribute profile) connections.

일 실시예에서 전자 장치(201)는 진단 성능 정보에 포함된 protocolType에 따라 BLE 스캔 또는 Wi-Fi 스캔을 통해 피제어 장치(320)를 발견하고, 피제어 장치(320)의 장치 정보에 포함되는 장치 식별 정보를 이용하여 피제어 장치(320)가 서버(310)에 등록되어 있는지 판단할 수 있다. 피제어 장치(320)가 서버(310)에 등록되어 있는 경우 서버(310)는 피제어 장치(320)의 장치 정보 및 상태(예를 들어 온라인/오프라인 상태)를 관리할 수 있다. 일 실시예에서 상기 장치 식별 정보는 MAC(media access control) 주소를 포함할 수 있다. 일 실시예에서 피제어 장치(320)의 장치 정보는 피제어 장치(320)가 서버(310)에 등록되는 과정에서 피제어 장치(320)로부터 서버(310)로 직접 전달되거나, 피제어 장치(320)가 서버(310)에 등록된 이후에 피제어 장치(320)로부터 서버(310)로 전달될 수 있다.In one embodiment, the electronic device 201 discovers the controlled device 320 through a BLE scan or Wi-Fi scan according to the protocolType included in the diagnostic performance information, and includes the device information of the controlled device 320. It can be determined whether the controlled device 320 is registered with the server 310 using the device identification information. When the controlled device 320 is registered with the server 310, the server 310 can manage the device information and status (for example, online/offline status) of the controlled device 320. In one embodiment, the device identification information may include a media access control (MAC) address. In one embodiment, the device information of the controlled device 320 is directly transferred from the controlled device 320 to the server 310 during the process of registering the controlled device 320 with the server 310, or the controlled device ( After 320 is registered with the server 310, it can be transmitted from the controlled device 320 to the server 310.

도 8은 일 실시예에 따라 피제어 장치가 서버에게 장치 정보를 업로드하는 절차를 설명하기 위한 도면이다.FIG. 8 is a diagram illustrating a procedure in which a controlled device uploads device information to a server according to an embodiment.

도 8을 참조하면, 동작 802에서 전자 장치(201)는 피제어 장치(320)에게 서버(310)에 대한 등록 절차를 진행하도록 지시하기 위해 프로비저닝 데이터를 전송할 수 있다. 일 실시예에서 프로비저닝 데이터는 전자 장치(201)와 관련된 단말 정보 및 사용자 계정에 대한 정보를 포함할 수 있다. 동작 804에서 피제어 장치(320)는 서버(310)에 대한 등록 절차를 진행할 수 있다. 등록 절차 이후 또는 등록 절차 도중에, 동작 806에서 피제어 장치(320)는 장치 정보를 서버(310)로 전달할 수 있다. 일 실시예에서 상기 장치 정보는 전자 장치(201)와 관련된 단말 정보 및 사용자 계정에 대한 정보를 포함하거나, 또는 단말 정보 및 사용자 계정에 대한 정보와 함께 서버(310)로 전달될 수 있다.Referring to FIG. 8 , in operation 802, the electronic device 201 may transmit provisioning data to instruct the controlled device 320 to proceed with a registration procedure for the server 310. In one embodiment, provisioning data may include terminal information related to the electronic device 201 and information about a user account. In operation 804, the controlled device 320 may proceed with a registration procedure for the server 310. After or during the registration process, the controlled device 320 may transmit device information to the server 310 in operation 806. In one embodiment, the device information may include terminal information and user account information related to the electronic device 201, or may be transmitted to the server 310 together with terminal information and user account information.

동작 808에서 서버(310)는 상기 장치 정보를 저장할 수 있다. 일 실시예에서 서버(310)는 장치 온보딩을 담당하는 장치 백엔드(device backend) 서버, 피제어 장치(320)의 메타데이터 정보를 관리하는 메타데이터 서버, 또는 장치 식별 정보를 관리하는 인셉션(inception) 서버 중 적어도 하나를 포함할 수 있다. 피제어 장치(320)는 등록 절차 중에 장치 식별 정보를 포함하는 장치 정보를 장치 백엔드 서버로 전송할 수 있다. 장치 백엔드 서버는 장치 식별 정보를 제외한 메타데이터 정보를 메타데이터 서버로 전달할 수 있고, 장치 식별 정보는 인셉션 서버로 전달할 수 있다. 동작 810에서 피제어 장치(320)는 새로운 장치 ID를 전자 장치(201)로 전송할 수 있다.In operation 808, the server 310 may store the device information. In one embodiment, the server 310 is a device backend server in charge of device onboarding, a metadata server that manages metadata information of the controlled device 320, or an inception ( inception) server. The controlled device 320 may transmit device information including device identification information to the device backend server during the registration process. The device backend server may transmit metadata information excluding device identification information to the metadata server, and the device identification information may be transmitted to the Inception server. In operation 810, the controlled device 320 may transmit a new device ID to the electronic device 201.

도 9는 일 실시예에 따라 전자 장치가 서버에게 피제어 장치의 장치 정보를 업로드하는 절차를 설명하기 위한 도면이다.FIG. 9 is a diagram illustrating a procedure in which an electronic device uploads device information of a controlled device to a server, according to an embodiment.

도 9를 참조하면, 동작 902에서 전자 장치(201)는 피제어 장치(320)와 D2D 연결(예를 들어 블루투스 연결 또는 Wi-Fi 연결)을 수립하고, 상기 D2D 연결을 통해 피제어 장치(320)의 장치 식별 정보(예를 들어 MAC 주소)를 획득할 수 있다. 동작 904에서 피제어 장치(320)는 서버(310)에 등록(예를 들어 sign up/sign in)할 수 있다. 피제어 장치(320)가 서버(310)에 장치 정보를 직접 전달하는 기능을 가지지 못하는 경우(예를 들어 구버전의 소프트웨어를 포함하는 경우) 동작 906에서 서버(310)는 피제어 장치(320)의 등록이 완료됨을 나타내는 알림(notification)을 전자 장치(201)에게 전송할 수 있다. 동작 908에서 전자 장치(201)는 상기 알림에 응답하여 피제어 장치(320)의 장치 정보(예를 들어 적어도 장치 식별 정보를 포함함)를 서버(310)로 전송할 수 있다. 동작 910에서 서버(310)는 피제어 장치(320)의 장치 정보를 전자 장치(201)의 사용자 계정과 연관하여 저장할 수 있다. 동작 912에서 서버(310)는 장치 정보의 저장이 완료되었음을 알리는 응답 메시지(예를 들어 "200 OK")를 전자 장치(201)로 전송할 수 있다.Referring to FIG. 9, in operation 902, the electronic device 201 establishes a D2D connection (for example, a Bluetooth connection or Wi-Fi connection) with the controlled device 320, and controls the controlled device 320 through the D2D connection. ) device identification information (for example, MAC address) can be obtained. In operation 904, the controlled device 320 may register (for example, sign up/sign in) with the server 310. If the controlled device 320 does not have the ability to directly transmit device information to the server 310 (for example, if it contains an old version of software), in operation 906, the server 310 A notification indicating that registration is complete may be transmitted to the electronic device 201. In operation 908, the electronic device 201 may transmit device information (for example, including at least device identification information) of the controlled device 320 to the server 310 in response to the notification. In operation 910, the server 310 may store device information of the controlled device 320 in association with the user account of the electronic device 201. In operation 912, the server 310 may transmit a response message (eg, “200 OK”) to the electronic device 201 indicating that storage of device information has been completed.

하기의 <표 2>는 일 실시예에 따른 장치 식별 정보의 일 예를 나타낸 것이다.Table 2 below shows an example of device identification information according to an embodiment.

AttributesAttributes ValueValue mnIdmnId "some-mnid""some-mnid" setupIdsetupId "some-setupId""some-setupId" modelCodemodelCode "some-code""some-code" serialNumberserialNumber "Some-serial""Some-serial" ssidssid "some-ssid""some-ssid" macAddressHashmacAddressHash "wifi":"hash(some-address)", "ble":"hash(some-address)", or
"p2p":"hash(some-address)"
"wifi":"hash(some-address)", "ble":"hash(some-address)", or
"p2p":"hash(some-address)"

일 실시예에서 장치 식별 정보는 mnId, setupId, modelCode, serialNumber, SSID(service set identifier), 또는 macAddressHash 중 적어도 하나를 포함할 수 있다. 일 실시예에서 mnId는 제조사 ID를 나타낼 수 있고, setupId는 온보딩 ID를 나타낼 수 있고, modelCode는 피제어 장치(320)의 장치 모델을 나타낼 수 있고, serialNumber는 피제어 장치(320)의 일련 번호(serial number: SN)를 나타낼 수 있다. macAddressHash는 피제어 장치(320)가 지원하는 프로토콜 타입(예를 들어 <표 1>의 'protocolType')에 따라 피제어 장치(320)의 적어도 하나의 MAC 주소(예를 들어 Wi-Fi MAC 주소, BLE MAC 주소, 또는 P2P(point-to-point) MAC 주소 중 적어도 하나)에 대한 해쉬 값을 포함할 수 있다.In one embodiment, the device identification information may include at least one of mnId, setupId, modelCode, serialNumber, service set identifier (SSID), or macAddressHash. In one embodiment, mnId may represent a manufacturer ID, setupId may represent an onboarding ID, modelCode may represent a device model of the controlled device 320, and serialNumber may represent the serial number of the controlled device 320. It can represent (serial number: SN). macAddressHash is at least one MAC address (e.g., Wi-Fi MAC address, It may include a hash value for at least one of a BLE MAC address or a point-to-point (P2P) MAC address.

일 실시예에서 전자 장치(201)는 피제어 장치(320)가 서버(310)에 등록되어 있는지 판단하기 위해, BLE 스캔 또는 Wi-Fi 스캔을 통해 발견한 피제어 장치(320)로부터 획득한 MAC 주소의 해쉬 값과, 장치 식별 정보의 'macAddressHash'를 비교하여, 동일한 경우 피제어 장치(320)가 서버(310)에 등록되어 있는 것으로 판단하고 피제어 장치(320)와 D2D 연결의 수립을 실행할 수 있다.In one embodiment, the electronic device 201 obtains the MAC from the controlled device 320 discovered through a BLE scan or Wi-Fi scan to determine whether the controlled device 320 is registered with the server 310. The hash value of the address is compared with the 'macAddressHash' of the device identification information, and if they are the same, it is determined that the controlled device 320 is registered with the server 310 and establishment of a D2D connection with the controlled device 320 is executed. You can.

도 10은 일 실시예에 따라 보안 연결을 통해 피제어 장치의 직접 연결 진단을 실행하는 절차를 설명하기 위한 신호 흐름도(sequence diagram)를 나타낸 것이다. 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 10 shows a signal flow diagram (sequence diagram) to explain a procedure for executing direct connection diagnosis of a controlled device through a secure connection according to an embodiment. At least one of the operations described below may be omitted, modified, or changed in order.

도 10을 참조하면, 동작 1000은 전자 장치(201)가 피제어 장치(320)와 통신 연결(예를 들어 D2D 연결)을 수립하는 동작을 의미할 수 있다. 일 실시예에서 동작 1000은 동작 1002, 동작 1004, 동작 1006, 동작 1008, 동작 1010, 동작 1012, 동작 1014, 동작 1016, 동작 1018, 또는 동작 1020 중 적어도 하나를 포함할 수 있다.Referring to FIG. 10, operation 1000 may refer to an operation in which the electronic device 201 establishes a communication connection (eg, D2D connection) with the controlled device 320. In one embodiment, operation 1000 may include at least one of operation 1002, operation 1004, operation 1006, operation 1008, operation 1010, operation 1012, operation 1014, operation 1016, operation 1018, or operation 1020.

동작 1002에서 전자 장치(201)는 서버(310)에게 피제어 장치(320)의 장치 정보를 요청할 수 있다. 일 실시예에서 전자 장치(201)는 클라이언트 어플리케이션을 실행하고 상기 클라이언트 어플리케이션을 통해 서버(310)로부터 피제어 장치 리스트(예를 들어 피제어 장치(320)를 포함함) 및 피제어 장치(320)의 상태 정보(예를 들어 온라인 또는 오프라인)를 예를 들어 주기적으로 또는 요청에 따라 수신할 수 있다. 상기 상태 정보를 근거로 피제어 장치(320)가 오프라인 상태임을 확인함에 따라 전자 장치(201)는 동작 1002를 실행할 수 있다. 일 실시예에서 전자 장치(201)는 클라이언트 어플리케이션을 통해 DCD를 실행하는 사용자 입력(예를 들어 사용자 입력(710))을 수신함에 근거하여 동작 1002를 실행할 수 있다. 일 실시예에서 전자 장치(201)는 주기적으로 또는 요청에 따라 서버(310)로부터 피제어 장치(320)의 장치 정보 및 상태 정보를 수신할 수 있다.In operation 1002, the electronic device 201 may request device information of the controlled device 320 from the server 310. In one embodiment, the electronic device 201 executes a client application and receives a list of controlled devices (for example, including the controlled device 320) and the controlled device 320 from the server 310 through the client application. Status information (e.g. online or offline) may be received, for example periodically or upon request. As the controlled device 320 is confirmed to be offline based on the status information, the electronic device 201 may execute operation 1002. In one embodiment, the electronic device 201 may execute operation 1002 based on receiving a user input (eg, user input 710) executing DCD through a client application. In one embodiment, the electronic device 201 may receive device information and status information of the controlled device 320 from the server 310 periodically or upon request.

동작 1004에서 전자 장치(201)는 서버(310)로부터 진단 성능 정보 및/또는 장치 식별 정보를 포함하는 장치 정보를 수신할 수 있다. 동작 1006에서 전자 장치(201)는 장치 정보에 근거하여 피제어 장치(320)가 DCD를 지원하는지 여부를 판단할 수 있다. 일 실시예에서 전자 장치(201)는 서버(310)로부터 장치 정보와 함께 수신한 상태 정보를 기반으로 피제어 장치(320)가 오프라인 상태임을 인지함에 따라 동작 1006을 실행할 수 있다. 일 실시예에서 장치 정보는 피제어 장치(320)이 DCD를 지원하는지의 여부를 나타내는 DCD 지원 필드를 포함할 수 있고, 전자 장치(201)는 상기 DCD 지원 필드의 값에 따라 피제어 장치(320)가 DCD를 지원하는 것으로 판단하거나, 또는 장치 정보에 상기 DCD 지원 필드가 포함되어 있음을 식별함에 따라 피제어 장치(320)가 DCD를 지원하는 것으로 판단할 수 있다. 일 실시예에서 진단 성능 정보는 <표 1>과 같이 구성될 수 있고, 전자 장치(201)는 장치 정보에 진단 성능 정보가 포함되어 있음을 확인함에 근거하여 피제어 장치(320)가 DCD를 지원하는 것으로 판단할 수 있다.In operation 1004, the electronic device 201 may receive device information including diagnostic performance information and/or device identification information from the server 310. In operation 1006, the electronic device 201 may determine whether the controlled device 320 supports DCD based on device information. In one embodiment, the electronic device 201 may execute operation 1006 when it recognizes that the controlled device 320 is offline based on status information received along with device information from the server 310. In one embodiment, the device information may include a DCD support field indicating whether the controlled device 320 supports DCD, and the electronic device 201 controls the controlled device 320 according to the value of the DCD support field. ) may be determined to support DCD, or it may be determined that the controlled device 320 supports DCD by identifying that the device information includes the DCD support field. In one embodiment, the diagnostic performance information may be configured as shown in <Table 1>, and the controlled device 320 supports DCD based on the electronic device 201 confirming that the device information includes diagnostic performance information. It can be judged that

동작 1008에서 전자 장치(201)는 DCD 실행을 위한 오브젝트(예를 들어 DCD 실행 오브젝트 또는 DCD 버튼)을 표시하고 피제어 장치(320)가 DCD를 지원하는 경우 상기 D2D 실행 오브젝트를 활성화(예를 들어 인에이블)할 수 있다. 만일 피제어 장치(320)가 DCD를 지원하지 않는 경우 상기 DCD 실행 오브젝트는 비활성화(예를 들어 디스에이블)될 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)가 DCD를 지원하는 경우 피제어 장치(320)를 위한 DCD 실행 오브젝트를 표시하고, 피제어 장치(320)가 DCD를 지원하지 않는 경우 피제어 장치(320)를 위한 DCD 실행 오브젝트를 표시하지 않을 수 있다. 동작 1010에서 전자 장치(201)는 상기 (활성화 또는 표시된) DCD 실행 오브젝트에 대한 사용자 입력(예를 들어 터치)을 수신할 수 있다.In operation 1008, the electronic device 201 displays an object for DCD execution (e.g., a DCD execution object or a DCD button) and, if the controlled device 320 supports DCD, activates the D2D execution object (e.g. enable) can be done. If the controlled device 320 does not support DCD, the DCD execution object may be deactivated (eg, disabled). In one embodiment, the electronic device 201 displays a DCD execution object for the controlled device 320 if the controlled device 320 supports DCD, and if the controlled device 320 does not support DCD, the electronic device 201 displays a DCD execution object for the controlled device 320. The DCD execution object for the controlled device 320 may not be displayed. In operation 1010, the electronic device 201 may receive a user input (eg, touch) on the (activated or displayed) DCD execution object.

동작 1012에서 전자 장치(201)는 가이드 화면의 구성에 필요한 셋업 데이터(예를 들어 장치 이미지와 가이드 문구)를 위한 요청 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 요청 메시지는 피제어 장치(320)의 장치 정보로부터 획득한 mnID 및/또는 setupId를 포함할 수 있다. 동작 1014에서 전자 장치(201)는 셋업 데이터를 서버(310)로부터 수신할 수 있다. 동작 1016에서 전자 장치(201)는 가이드 화면(예를 들어 도 18b의 가이드 화면(1804))을 표시할 수 있다. 일 실시예에서 상기 가이드 화면은 피제어 장치(320)의 장치 이미지와 가이드 문구를 포함할 수 있다. 상기 가이드 문구는 피제어 장치(320)의 장치 타입에 따라 사용자에게 D2D 연결을 가이드하기 위한 내용으로서, 예를 들어 "장치의 전원을 켜고 AP가 나타날 때까지 버튼을 3초 이상 누르세요"를 포함할 수 있다. 일 실시예에서 상기 가이드 화면은 상기 D2D 연결의 수립을 실행하기 위한 오브젝트(예를 들어 입력 버튼)를 포함할 수 있다.In operation 1012, the electronic device 201 may transmit a request message for setup data (eg, device image and guide text) required to configure the guide screen to the server 310. In one embodiment, the request message may include mnID and/or setupId obtained from device information of the controlled device 320. In operation 1014, the electronic device 201 may receive setup data from the server 310. In operation 1016, the electronic device 201 may display a guide screen (for example, the guide screen 1804 in FIG. 18B). In one embodiment, the guide screen may include a device image of the controlled device 320 and guide text. The guide text is intended to guide the user in D2D connection according to the device type of the controlled device 320, and includes, for example, "Turn on the device and press the button for more than 3 seconds until the AP appears." can do. In one embodiment, the guide screen may include an object (eg, an input button) for executing establishment of the D2D connection.

동작 1018에서 전자 장치(201)는 장치 스캔을 통해 피제어 장치(320)를 발견할 수 있다. 일 실시예에서 사용자는 상기 가이드 화면에 따라 피제어 장치(320)의 전원을 켤 수 있고, 피제어 장치(320)는 프로토콜 타입에 따라 전자 장치(201)에 의해 발견될 수 있도록 준비할 수 있다. 일 실시예에서 피제어 장치(320)는 자신의 MAC 주소를 포함하는 신호(예를 들어 BLE 애드버타이징 신호 또는 Wi-Fi 브로드캐스트 신호(즉 비콘 신호))를 일정 간격으로 방송할 수 있다. 일 실시예에서 전자 장치(201)는 상기 장치 식별 정보에 포함되는 MAC 주소(예를 들어 'macAddressHash')를 이용하여, 스캔 리스트의 장치들 중 피제어 장치(320)를 발견할 수 있다. 동작 1020에서 전자 장치(201)는 피제어 장치(320)와 D2D 연결(예를 들어 BLE 연결 또는 Wi-Fi 연결)을 수립할 수 있다.In operation 1018, the electronic device 201 may discover the controlled device 320 through device scanning. In one embodiment, the user can turn on the controlled device 320 according to the guide screen, and the controlled device 320 can prepare to be discovered by the electronic device 201 according to the protocol type. . In one embodiment, the controlled device 320 may broadcast a signal containing its MAC address (e.g., a BLE advertising signal or a Wi-Fi broadcast signal (i.e., a beacon signal)) at regular intervals. . In one embodiment, the electronic device 201 may discover the controlled device 320 among the devices in the scan list using the MAC address (eg, 'macAddressHash') included in the device identification information. In operation 1020, the electronic device 201 may establish a D2D connection (for example, a BLE connection or a Wi-Fi connection) with the controlled device 320.

동작 1022에서 전자 장치(201)는 피제어 장치(320)의 소유권을 확인할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)로부터 수신한 정보(예를 들어 PIN)가 사용자로부터 입력된 정보(예를 들어 PIN)와 일치함을 확인함으로써, 피제어 장치(320)가 사용자에 의해 실제로 소유됨을 확인할 수 있다. 전자 장치(201)는 피제어 장치(320)의 소유권을 확인하고 D2D 연결을 보안 연결로 간주할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)의 크리덴셜 정보를 이미 가지고 있음을 확인하고 동작 1022를 생략할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)의 등록을 실행한 오너 장치로부터 초대된 멤버 장치이며, 오너 장치로부터 수신한 크리덴셜 정보를 근거로 동작 1022를 실행할 수 있다. 일 실시예에서 전자 장치(201)는 동작 1010 이후에 오너 장치에게 상기 크리덴셜 정보를 요청하여 수신할 수 있다.In operation 1022, the electronic device 201 can confirm ownership of the controlled device 320. In one embodiment, the electronic device 201 confirms that the information (e.g., PIN) received from the controlled device 320 matches the information (e.g., PIN) entered by the user, thereby ) can be confirmed that it is actually owned by the user. The electronic device 201 may confirm ownership of the controlled device 320 and consider the D2D connection as a secure connection. In one embodiment, the electronic device 201 may confirm that it already has the credential information of the controlled device 320 and skip operation 1022. In one embodiment, the electronic device 201 is a member device invited by the owner device that performed registration of the controlled device 320, and may execute operation 1022 based on the credential information received from the owner device. In one embodiment, the electronic device 201 may request and receive the credential information from the owner device after operation 1010.

동작 1024에서 전자 장치(201)는 상기 D2D 연결을 통해 피제어 장치(320)로부터 오프라인 에러 코드를 포함하는 연결 정보를 수신할 수 있다. 일 실시예에서 오프라인 에러 코드는 피제어 장치(320)가 오프라인 상태가 된 원인을 나타낼 수 있으며, 예를 들어 클라우드 에러, 네트워크 에러, 장치 에러, 또는 미확인 에러 중 적어도 하나를 지시할 수 있다. 일 실시예에서 연결 정보는 <표 3>의 필드들 중 적어도 하나를 포함할 수 있다.In operation 1024, the electronic device 201 may receive connection information including an offline error code from the controlled device 320 through the D2D connection. In one embodiment, the offline error code may indicate the cause of the controlled device 320 being offline, and may indicate, for example, at least one of a cloud error, a network error, a device error, or an unidentified error. In one embodiment, connection information may include at least one of the fields in <Table 3>.

동작 1026에서 전자 장치(201)는 상기 D2D 연결을 통해 피제어 장치(320)로부터 장치 로그 데이터를 수신할 수 있다. 상기 장치 로그 데이터는 피제어 장치(320)의 동작 이력(예를 들어 전원 온, 기능 실행, 상태 변경, 에러 발생, 또는 전원 오프 중 적어도 하나)을 포함할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)에게 장치 로그 데이터의 생성을 요청하고, 상기 피제어 장치(320)로부터 상기 생성된 장치 로그 데이터(예를 들어 로그 데이터의 덤프 파일)를 수신할 수 있다.In operation 1026, the electronic device 201 may receive device log data from the controlled device 320 through the D2D connection. The device log data may include the operation history of the controlled device 320 (for example, at least one of power on, function execution, status change, error occurrence, or power off). In one embodiment, the electronic device 201 requests the controlled device 320 to generate device log data, and receives the generated device log data (e.g., a dump file of log data) from the controlled device 320. can receive.

동작 1028에서 전자 장치(201)는 피제어 장치(320)를 위한 에러 핸들링을 실행할 수 있다. 일 실시예에서 에러 핸들링은 피제어 장치(320)로 상기 오프라인 에러 코드 및 상기 피제어 장치(320)의 장치 타입에 대응하는 복구 명령을 전송하는 동작과, 서버(310)에게 피제어 장치(320)의 연결 상태를 확인하는 동작을 포함할 수 있다. 일 실시예에서 전자 장치(201)는 상기 오프라인 에러 코드를 기반으로 조치 가이드를 사용자에게 표시할 수 있고, 사용자 입력에 응답하여 상기 복구 명령을 피제어 장치(320)로 전송할 수 있다. 일 실시예에서 피제어 장치(320)는 전자 장치(201)로부터 수신한 복구 명령에 응답하여 자체 진단을 실행한 후 서버(310)와 연결을 시도할 수 있다. 서버(310)는 피제어 장치(320)와 연결됨을 확인하고, 피제어 장치(320)가 연결되어 있음을 알리는 메시지를 전자 장치(201)로 전송할 수 있다. 일 실시예에서 동작 1028에서 전자 장치(201)는 연결 정보에 포함되는 오프라인 에러 코드의 값에 따라 조치 가이드를 표시할 수 있고, 상기 오프라인 에러 코드에 대응하는 복구 명령을 피제어 장치(320)로 전송할 수 있다.In operation 1028, the electronic device 201 may perform error handling for the controlled device 320. In one embodiment, error handling includes transmitting the offline error code and a recovery command corresponding to the device type of the controlled device 320 to the controlled device 320, and sending the controlled device 320 to the server 310. ) may include an operation to check the connection status. In one embodiment, the electronic device 201 may display an action guide to the user based on the offline error code and transmit the recovery command to the controlled device 320 in response to a user input. In one embodiment, the controlled device 320 may perform self-diagnosis in response to a recovery command received from the electronic device 201 and then attempt to connect to the server 310. The server 310 may confirm that it is connected to the controlled device 320 and transmit a message notifying that the controlled device 320 is connected to the electronic device 201. In one embodiment, in operation 1028, the electronic device 201 may display an action guide according to the value of the offline error code included in the connection information, and send a recovery command corresponding to the offline error code to the controlled device 320. Can be transmitted.

동작 1030에서 전자 장치(201)는 상기 에러 핸들링의 처리 결과를 나타내는 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 에러 보고 메시지는 상기 오프라인 에러 코드 및/또는 상기 장치 로그 데이터를 포함할 수 있다. 일 실시예에서 상기 에러 보고 메시지는 전자 장치(201)에 대한 사용자 입력에 응답하여 전송될 수 있다. 일 실시예에서 전자 장치(201)는 상기 에러 핸들링이 완료된 이후 피제어 장치(320)와의 D2D 연결을 해지(disconnect)할 수 있다.In operation 1030, the electronic device 201 may transmit an error reporting message indicating the result of the error handling to the server 310. In one embodiment, the error reporting message may include the offline error code and/or the device log data. In one embodiment, the error reporting message may be transmitted in response to user input to the electronic device 201. In one embodiment, the electronic device 201 may disconnect the D2D connection with the controlled device 320 after the error handling is completed.

하기의 <표 3>은 일 실시예에 따른 연결 정보의 일 예를 나타낸 것이다.<Table 3> below shows an example of connection information according to an embodiment.

FieldField DescriptionDescription mnmomnmo model id를 포함하는 제품 구분자Product identifier including model id network_typenetwork_type 유선/무선 인터넷 연결 상태Wired/wireless Internet connection status ap_macap_mac homeAP MAC OUI (organizationally unique identifier)homeAP MAC OUI (organizationally unique identifier) ap_freqap_freq homeAP frequency bandhomeAP frequency band ap_protocolap_protocol homeAP wifi protocolhomeAP wifi protocol ap_rssiap_rssi homeAP RSSI (receive signal strength indicator)homeAP RSSI (receive signal strength indicator) error_codeerror_code 에러 내용Error details online_statusonline_status 연결 정보의 호출 시점에서 피제어 장치의 클라우드 online/offline 상태Cloud online/offline status of the controlled device at the time of connection information call ap_securityap_security homeAP security typehomeAP security type disconnection_timedisconnection_time 피제어 장치가 오프라인 상태로 변경된 후 경과된 시간Time elapsed since the controlled device went offline

일 실시예에서 연결 정보는 mnmo, network_type, ap_mac, ap_freq, ap_protocol, ap_rssi, error_code, online-status, ap_security, 또는 disconnection_time 중 적어도 하나를 포함할 수 있다. 일 실시예에서 error_code는 피제어 장치(320)의 오프라인 진단을 위한 에러 코드(예를 들어 오프라인 에러 코드)의 값들 중 하나를 포함할 수 있다. In one embodiment, the connection information may include at least one of mnmo, network_type, ap_mac, ap_freq, ap_protocol, ap_rssi, error_code, online-status, ap_security, or disconnection_time. In one embodiment, error_code may include one of the values of an error code (eg, offline error code) for offline diagnosis of the controlled device 320.

하기의 <표 4>는 일 실시예에 따른 오프라인 에러 코드의 일 예를 나타낸 것이다.Table 4 below shows an example of an offline error code according to an embodiment.

분류classification Main valueMain value 원인 cause Sub valueSub value 상세 원인detailed cause Cloud ErrorCloud Error CE01CE01 SmartThings Cloud 주소로 DNS 실패 DNS failure with SmartThings Cloud address 1One 사설IP 응답Private IP response CE80CE80 SmartThings Cloud와 session 연결 실패Failed to connect session with SmartThings Cloud 22 CE20CE20 Sign-in 실패Sign-in failed 1One send failsend fail 22 실패 응답값failure response value 33 시간초과timeout CE82CE82 Sign-out 실패Sign-out failed 1One send failsend fail 22 실패 응답값failure response value 33 시간초과timeout CE83CE83 Keep alive resource discovery 실패Keep alive resource discovery failed 1One send failsend fail 22 실패 응답값failure response value 33 시간초과timeout CE84CE84 Keep alive request 실패Keep alive request failed 1One send failsend fail 22 실패 응답값failure response value 33 시간초과timeout CE60CE60 Access token refresh 실패Access token refresh failed 1One send failsend fail 22 실패 응답failure response 33 시간초과timeout CE90CE90 장치 초기화Reset device CE70CE70 Rate LimitRate Limit Network ErrorNetwork Error NE11NE11 공유기에 연결 실패Failed to connect to the router 1One AP not foundAP not found 22 Authentication 실패Authentication failed 33 Association 실패Association failed 44 패스워드 불일치
(EAPOL(EAP encapsulation over LAN) 실패와 동일)
password mismatch
(same as EAPOL (EAP encapsulation over LAN) failure)
55 OPEN-패스워드존재OPEN-password exists 66 Wi-Fi module detachWi-Fi module detached NE30NE30 공유기 연결 끊김Router disconnected 1One beacon lossbeacon loss 22 De-authenticatedDe-authenticated NE12NE12 공유기 DHCP 실패Router DHCP failure 1One discovery + request timeoutdiscovery + request timeout NE50NE50 Ethernet router에 연결 실패Failed to connect to Ethernet router 1One ethernet cable detachethernet cable detach 22 dhcp 실패dhcp failed 33 ethernet router check 실패 (arping)ethernet router check failed (arping) Device specific ErrorDevice-specific Error DS01DS01 장기간 미사용Long term unused 1One 장기간 미사용Long term unused DS02DS02 Power-on 미지원Power-on not supported 1One Power On 미지원Power On not supported 22 "모바일로 전원 켜기" 설정 Off“Power on via mobile” setting Off 33 구형 TV가 유선 랜 연결 시When an old TV is connected to a wired LAN DS03DS03 Device errorDevice error 1One Wakeup timer errorWakeup timer error 22 cold power offcold power off 33 SES DisconnectionSES Disconnection Unknown ErrorUnknown Error UE01UE01 or Unknown Error / Default Error codeor Unknown Error / Default Error code   Unknown ErrorUnknown Error

도 11은 일 실시예에 따라 피제어 장치의 소유권을 확인하는 절차를 설명하기 위한 신호 흐름도이다. 실시예들에서 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 11 is a signal flow diagram illustrating a procedure for confirming ownership of a controlled device according to an embodiment. In embodiments, at least one of the operations described below may be omitted, modified, or changed in order.

도 11을 참조하면, 동작 1022(예를 들어 도 10의 동작 1022)에서 전자 장치(201)는 피제어 장치(320)의 소유권을 확인할 수 있다. 일 실시예에서 동작 1022는 동작 1102, 동작 1104, 동작 1106 또는 동작 1108 중 적어도 하나를 포함할 수 있다. 일 실시예에서 전자 장치(201)는 D2D 연결을 통해 연결 정보와 장치 로그 데이터를 수신하기 위해 동작 1022를 통해 소유권을 확인할 수 있다.Referring to FIG. 11 , in operation 1022 (eg, operation 1022 of FIG. 10 ), the electronic device 201 may confirm ownership of the controlled device 320 . In one embodiment, operation 1022 may include at least one of operation 1102, operation 1104, operation 1106, or operation 1108. In one embodiment, the electronic device 201 may confirm ownership through operation 1022 to receive connection information and device log data through a D2D connection.

동작 1102에서 전자 장치(201)는 D2D 연결(예를 들어 도 10의 동작 1020에서 수립한 D2D 연결)을 통해 피제어 장치로 OTM(ownership transfer method) 요청 메시지를 전송할 수 있다. OTM은 피제어 장치(320)가 사용자에 의해 실제로 소유되어 있는지를 증명하는 절차로서, 예를 들어 사용자 확인(user confirm), QR(quick response) 확인, 랜덤 PIN, 일련 번호 확인, 또는 초음파(Ultrasound) 확인 중 적어도 하나를 사용할 수 있다. 일 실시예에서 랜덤 PIN 방식이 사용되는 경우, 동작 1104에서 피제어 장치(320)는 랜덤으로 생성된 PIN(예를 들어 제1 PIN)을 포함하는 OTM 응답 메시지를 전자 장치(201)로 전송할 수 있다. 일 실시예에서 피제어 장치(320)는 상기 제1 PIN을 사용자가 확인할 수 있도록 자신의 디스플레이 모듈(도시하지 않음)에 표시할 수 있다.In operation 1102, the electronic device 201 may transmit an ownership transfer method (OTM) request message to the controlled device through a D2D connection (for example, the D2D connection established in operation 1020 of FIG. 10). OTM is a procedure to prove whether the controlled device 320 is actually owned by the user, for example, user confirmation, QR (quick response) confirmation, random PIN, serial number confirmation, or ultrasonic (Ultrasound) confirmation. ) At least one of the following confirmations can be used. In one embodiment, when the random PIN method is used, in operation 1104, the controlled device 320 may transmit an OTM response message including a randomly generated PIN (for example, a first PIN) to the electronic device 201. there is. In one embodiment, the controlled device 320 may display the first PIN on its display module (not shown) so that the user can check it.

동작 1106에서 전자 장치(201)는 입력 화면을 디스플레이 모듈(260)에 표시하고 상기 입력 화면을 통해 사용자로부터 피제어 장치(320)의 소유권을 확인하기 위한 제2 PIN을 수신할 수 있다. 전자 장치(201)는 상기 OTM 응답 메시지를 통해 수신한 제1 PIN과 상기 제2 PIN을 비교하여 일치하는 경우 피제어 장치(320)가 사용자에 의해 실제로 소유된 것으로 판단할 수 있다. 동작 1108에서 전자 장치(201)는 OTM 성공(success) 메시지를 통해 피제어 장치(320)와 크리덴셜 정보를 공유함으로써 소유권 확인을 완료할 수 있다. In operation 1106, the electronic device 201 may display an input screen on the display module 260 and receive a second PIN for confirming ownership of the controlled device 320 from the user through the input screen. The electronic device 201 may compare the first PIN received through the OTM response message with the second PIN and, if they match, determine that the controlled device 320 is actually owned by the user. In operation 1108, the electronic device 201 may complete ownership verification by sharing credential information with the controlled device 320 through an OTM success message.

일 실시예에서 피제어 장치(320)가 서버(310)에 등록하는 과정 중에 전자 장치(201)와 피제어 장치(320)는 각각 크리덴셜 정보를 저장할 수 있다. 상기 크리덴셜 정보는 동작 1102의 OTM 요청 메시지를 통해 피제어 장치(320)로 전달될 수 있으며, 피제어 장치(320)는 상기 크리덴셜 정보가 자신이 가지고 있는 크리덴셜 정보와 동일함을 확인하고 동작 1104에서 OTM 응답 메시지를 전송할 수 있다. 일 실시예에서 크리덴셜 정보가 사용되는 경우 사용자 확인은 생략될 수 있으며, 상기 OTM 응답 메시지는 PIN을 포함하지 않을 수 있다. 전자 장치(201)는 동작 1106의 PIN 검사를 생략하고 상기 OTM 응답 메시지의 수신에 근거하여 피제어 장치(320)의 소유권이 확인된 것으로 판단할 수 있다.In one embodiment, during the process of registering the controlled device 320 with the server 310, the electronic device 201 and the controlled device 320 may each store credential information. The credential information may be transmitted to the controlled device 320 through the OTM request message in operation 1102, and the controlled device 320 confirms that the credential information is the same as the credential information it has, and In operation 1104, an OTM response message may be transmitted. In one embodiment, if credential information is used, user verification may be omitted and the OTM response message may not include a PIN. The electronic device 201 may skip the PIN check in operation 1106 and determine that ownership of the controlled device 320 has been confirmed based on reception of the OTM response message.

일 실시예에서 전자 장치(201)는 피제어 장치(320)를 서버(310)에 등록하는 절차를 실행한 오너 장치일 수 있고, 등록 절차 중에 생성한 크리덴셜 정보를 이용하여 동작 1022의 소유권 확인을 실행할 수 있다. 일 실시예에서 전자 장치(201)는 오너 장치로부터 초대되거나 오너 장치에 의해 허락된 멤버 장치일 수 있으며, 오너 장치로부터 크리덴셜 정보를 수신하고 상기 크리덴셜 정보를 이용하여 동작 1022의 소유권 확인을 실행할 수 있다. 일 실시예에서 피제어 장치(320)는 오너 장치 및 적어도 하나의 멤버 장치에 대한 크리덴셜 정보를 각각 저장할 수 있다. 일 실시예에서 전자 장치(201)는 멤버 장치일 수 있으며, 사용자로부터 입력된 PIN을 사용하여 동작 1022의 소유권 확인을 실행할 수 있다. 일 실시예에서 전자 장치(201)가 피제어 장치(320)의 소유권을 이미 확인한 경우, 동작 1022는 생략될 수 있다. In one embodiment, the electronic device 201 may be an owner device that has performed a procedure to register the controlled device 320 with the server 310, and verifies ownership in operation 1022 using the credential information generated during the registration procedure. You can run . In one embodiment, the electronic device 201 may be a member device invited by or permitted by the owner device, and may receive credential information from the owner device and perform ownership verification in operation 1022 using the credential information. You can. In one embodiment, the controlled device 320 may store credential information for the owner device and at least one member device, respectively. In one embodiment, the electronic device 201 may be a member device and may perform ownership verification in operation 1022 using a PIN entered by the user. In one embodiment, if the electronic device 201 has already confirmed ownership of the controlled device 320, operation 1022 may be omitted.

일 실시예에서 동작 1022를 통해 소유권 확인이 완료되면 전자 장치(201)는 피제어 장치(320)의 장치 ID를 저장할 수 있고, 피제어 장치(320)는 전자 장치(201)의 단말 ID(mobile ID)를 저장할 수 있다. 일 실시예에서 전자 장치(201)는 동작 1020의 D2D 연결을 수립하는 동안 피제어 장치(320)의 장치 ID를 확인하여 만일 피제어 장치(320)의 장치 ID가 이미 저장되어 있다면, 동작 1022를 생략할 것으로 결정할 수 있다.In one embodiment, when ownership verification is completed through operation 1022, the electronic device 201 may store the device ID of the controlled device 320, and the controlled device 320 may store the terminal ID (mobile) of the electronic device 201. ID) can be saved. In one embodiment, the electronic device 201 checks the device ID of the controlled device 320 while establishing the D2D connection in operation 1020 and, if the device ID of the controlled device 320 is already stored, performs operation 1022. You may decide to omit it.

도 12는 일 실시예에 따라 연결 정보와 장치 로그 데이터를 수신하는 절차를 설명하기 위한 신호 흐름도이다. 실시예들에서 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 12 is a signal flow diagram illustrating a procedure for receiving connection information and device log data according to an embodiment. In embodiments, at least one of the operations described below may be omitted, modified, or changed in order.

도 12를 참조하면, 동작 1024(예를 들어, 도 10의 동작 1024)에서 전자 장치(201)는 D2D 연결(예를 들어, 도 10의 동작 1020에서 수립된 D2D 연결)(예를 들어 BLE 연결)을 통해 피제어 장치(320)로부터 연결 정보를 수신하고 동작 1026으로 진행할 수 있다. 일 실시예에서 동작 1024는 동작 1202, 동작 1204, 동작 1206, 동작 1208, 또는 동작 1210 중 적어도 하나를 포함할 수 있다.Referring to FIG. 12, in operation 1024 (e.g., operation 1024 of FIG. 10), the electronic device 201 establishes a D2D connection (e.g., a D2D connection established in operation 1020 of FIG. 10) (e.g., a BLE connection). ), connection information can be received from the controlled device 320 and proceed to operation 1026. In one embodiment, operation 1024 may include at least one of operation 1202, operation 1204, operation 1206, operation 1208, or operation 1210.

동작 1202에서 전자 장치(201)는 피제어 장치(320)에게 연결 정보를 가지고 있는지 문의하기 위한 Discovery resource 메시지를 전송할 수 있다. 동작 1204에서 피제어 장치(320)는 연결 정보를 가지고 있음을 나타내는 Found resource 메시지를 전자 장치(201)로 전송할 수 있다. 동작 1206에서 전자 장치(201)는 피제어 장치(320)에게 연결 정보를 요청하는 Get resource 메시지를 전송할 수 있다. 동작 1208에서 피제어 장치(320)는 상기 연결 정보를 포함하는 Response 메시지를 전자 장치(201)로 전송할 수 있다. 동작 1210에서 전자 장치(201)는 상기 연결 정보를 포함하는 로그 데이터를 생성할 수 있다. 일 실시예에서 상기 로그 데이터는 전자 장치(201)의 단말 로그(mobile log)를 포함할 수 있다.In operation 1202, the electronic device 201 may transmit a Discovery resource message to inquire whether the controlled device 320 has connection information. In operation 1204, the controlled device 320 may transmit a Found resource message indicating that it has connection information to the electronic device 201. In operation 1206, the electronic device 201 may transmit a Get resource message requesting connection information to the controlled device 320. In operation 1208, the controlled device 320 may transmit a Response message including the connection information to the electronic device 201. In operation 1210, the electronic device 201 may generate log data including the connection information. In one embodiment, the log data may include a mobile log of the electronic device 201.

동작 1026(예를 들어, 도 10의 동작 1026)에서 전자 장치(201)는 D2D 연결(예를 들어 동작 1020에서 수립된 D2D 연결)(예를 들어 BLE 연결)을 통해 피제어 장치(320)로부터 장치 로그 데이터를 수신할 수 있다. 일 실시예에서 동작 1026은 동작 1212, 동작 1214, 동작 1216, 동작 1218, 동작 1220, 또는 동작 1022 중 적어도 하나를 포함할 수 있다.In operation 1026 (e.g., operation 1026 of FIG. 10), the electronic device 201 is connected to the controlled device 320 via a D2D connection (e.g., the D2D connection established in operation 1020) (e.g., a BLE connection). Device log data can be received. In one embodiment, operation 1026 may include at least one of operation 1212, operation 1214, operation 1216, operation 1218, operation 1220, or operation 1022.

동작 1212에서 전자 장치(201)는 피제어 장치(320)에게 장치 로그 데이터를 가지고 있는지 문의하기 위한 Discovery resource 메시지를 전송할 수 있다. 동작 1214에서 피제어 장치(320)는 장치 로그 데이터를 가지고 있음을 나타내는 Found resource 메시지를 전자 장치(201)로 전송할 수 있다. 동작 1216에서 전자 장치(201)는 피제어 장치(320)에게 타임 스탬프를 포함하는 장치 로그 데이터(예를 들어 장치 로그의 덤프 파일)를 생성하도록 요청하는 Post resource 메시지를 전송할 수 있다. 동작 1218에서 피제어 장치(320)는 상기 장치 로그 데이터를 생성하고 Response Ok 메시지를 전자 장치(201)로 전송할 수 있다. In operation 1212, the electronic device 201 may transmit a Discovery resource message to inquire whether the controlled device 320 has device log data. In operation 1214, the controlled device 320 may transmit a Found resource message indicating that it has device log data to the electronic device 201. In operation 1216, the electronic device 201 may transmit a Post resource message requesting the controlled device 320 to generate device log data (for example, a dump file of the device log) including a time stamp. In operation 1218, the controlled device 320 may generate the device log data and transmit a Response Ok message to the electronic device 201.

동작 1220에서 전자 장치(201)는 피제어 장치(320)에게 상기 장치 로그 데이터를 요청하는 Get resource 메시지를 전송할 수 있다. 동작 1222에서 피제어 장치(320)는 상기 장치 로그 데이터를 포함하는 Response 메시지를 전자 장치(201)로 전송할 수 있다. In operation 1220, the electronic device 201 may transmit a Get resource message requesting the device log data to the controlled device 320. In operation 1222, the controlled device 320 may transmit a Response message including the device log data to the electronic device 201.

도 13은 일 실시예에 따른 에러 핸들링과 에러 보고를 설명하기 위한 신호 흐름도이다. 실시예들에서 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 13 is a signal flow diagram to explain error handling and error reporting according to an embodiment. In embodiments, at least one of the operations described below may be omitted, modified, or changed in order.

도 13을 참조하면, 동작 1028(예를 들어 도 10의 동작 1028)에서 전자 장치(201)는 동작 1024(예를 들어 도 10의 동작 1024)에서 획득한 오프라인 에러 코드에 따라 피제어 장치(320)의 오프라인 에러를 처리(handling)할 수 있다. 일 실시예에서 동작 1028은 동작 1302, 동작 1304, 동작 1306, 동작 1306a, 동작 1308 또는 동작 1310 중 적어도 하나를 포함할 수 있다.Referring to FIG. 13, in operation 1028 (e.g., operation 1028 of FIG. 10), the electronic device 201 controls the controlled device 320 according to the offline error code obtained in operation 1024 (e.g., operation 1024 of FIG. 10). ) offline errors can be handled. In one embodiment, operation 1028 may include at least one of operation 1302, operation 1304, operation 1306, operation 1306a, operation 1308, or operation 1310.

동작 1302에서 전자 장치(201)는 오프라인 에러 코드에 대응하는 조치 가이드를 포함하는 조치 가이드 화면(예를 들어 도 19b의 화면(1904), 도 20의 화면(2002), 또는 도 21의 화면(2102))을 표시할 수 있다. 일 실시예에서 조치 가이드 화면은 <표 4>에 예시된 오프라인 에러 코드에 따라 예를 들어 "Wi-Fi 비밀번호가 잘못되었습니다", "Wi-Fi 공유기를 찾을 수 없습니다" 또는 "장치의 전원을 껐다가 다시 켜주세요"와 같은 가이드 문구를 포함할 수 있다. 일 실시예에서 조치 가이드 화면은 피제어 장치(320)로 복구 명령을 전송할 것을 지시하는 오브젝트(예를 들어 도 20의 "Continue on TV"의 입력 버튼, 또는 도 21의 "Reboot"의 입력 버튼)을 포함할 수 있다. In operation 1302, the electronic device 201 displays an action guide screen (e.g., screen 1904 in FIG. 19B, screen 2002 in FIG. 20, or screen 2102 in FIG. 21) including an action guide corresponding to the offline error code. )) can be displayed. In one embodiment, the action guide screen may display, for example, “Wi-Fi password is incorrect,” “Wi-Fi router not found,” or “Turn off the device,” depending on the offline error code illustrated in Table 4. It can include guide phrases such as “Please turn it on again.” In one embodiment, the action guide screen is an object instructing to transmit a recovery command to the controlled device 320 (e.g., an input button for “Continue on TV” in FIG. 20 or an input button for “Reboot” in FIG. 21). may include.

상기 조치 가이드 화면 상의 상기 입력 버튼에 대해 사용자 입력이 수신됨에 근거하여 동작 1304에서 전자 장치(201)는 상기 오프라인 에러 코드에 대응하는 복구 명령을 포함하는 메시지(예를 들어 "Request command")를 피제어 장치(320)로 전송할 수 있다. 상기 복구 명령은 피제어 장치(320)에서 오프라인 상태를 복구하기 위해 실행되어야 하는 특정 기능, 예를 들어 Wi-Fi 재연결 또는 리부팅을 지시할 수 있다. 동작 1306에서 피제어 장치(320)는 상기 복구 명령에 대응하는 기능(예를 들어 Wi-Fi 재연결 또는 리부팅)을 실행할 수 있다. 일 실시예에서 피제어 장치(320)가 TV와 같이 큰 디스플레이 화면을 가지는 경우, 상기 복구 명령은 "TV에서 계속"을 지시할 수 있고, 동작 1306에서 피제어 장치(320)는 상기 복구 명령에 응답하여 사용자와 연동함으로써 연결 검사와 같은 에러 핸들링을 직접 실행할 수 있다. 동작 1306a에서 피제어 장치(320)는 상기 에러 핸들링에 의해 오프라인 에러를 해결한 후 서버(310)와 다시 연결할 수 있다. 피제어 장치(320)가 서버(310)에 정상적으로 연결된 경우 서버(310)는 피제어 장치(320)의 상태를 연결됨('Connected')(또는 온라인)으로 업데이트할 수 있다.Based on receiving a user input for the input button on the action guide screen, in operation 1304, the electronic device 201 avoids sending a message (e.g., “Request command”) containing a recovery command corresponding to the offline error code. It can be transmitted to the control device 320. The recovery command may instruct a specific function to be performed in the controlled device 320 to restore the offline state, for example, Wi-Fi reconnection or rebooting. In operation 1306, the controlled device 320 may execute a function (eg, Wi-Fi reconnection or reboot) corresponding to the recovery command. In one embodiment, when the controlled device 320 has a large display screen, such as a TV, the recovery command may indicate “Continue on TV,” and in operation 1306, the controlled device 320 responds to the recovery command. By responding and linking with the user, error handling such as connection checking can be performed directly. In operation 1306a, the controlled device 320 may reconnect with the server 310 after resolving the offline error through the error handling. If the controlled device 320 is normally connected to the server 310, the server 310 may update the status of the controlled device 320 to connected ('Connected') (or online).

동작 1308에서 전자 장치(201)는 상기 복구 명령을 전송한 이후 서버(310)에게 장치 상태를 요청하는 메시지(예를 들어 "Request device status")를 전송할 수 있다. 동작 1310에서 서버(310)는 피제어 장치(320)가 서버(310)에 연결되는지를 확인하고, 그 결과(예를 들어 연결됨(Connected) 또는 연결되지 않음(Not Connected))를 포함하는 상태 메시지(예를 들어 "Response (Connected)")를 전자 장치(201)로 전송할 수 있다.In operation 1308, after transmitting the recovery command, the electronic device 201 may transmit a message requesting the device status (for example, “Request device status”) to the server 310. In operation 1310, the server 310 determines whether the controlled device 320 is connected to the server 310 and sends a status message including the result (e.g., Connected or Not Connected). (For example, “Response (Connected)”) may be transmitted to the electronic device 201.

동작 1030(예를 들어 도 10의 동작 1030)에서 전자 장치(201)는 동작 1028의 에러 핸들링에 대한 결과를 서버(310) 보고할 수 있다. 일 실시예에서 동작 1030은 동작 1312, 동작 1314, 동작 1316, 또는 동작 1318 중 적어도 하나를 포함할 수 있다.In operation 1030 (eg, operation 1030 of FIG. 10 ), the electronic device 201 may report the result of the error handling of operation 1028 to the server 310 . In one embodiment, operation 1030 may include at least one of operation 1312, operation 1314, operation 1316, or operation 1318.

동작 1312에서 전자 장치(201)는 동작 1310의 상태 메시지를 통해 피제어 장치(320)가 서버(310)에 연결됨을 확인함에 따라 피제어 장치(320)와의 연결을 해제(disconnect)할 수 있다. 동작 1314에서 전자 장치(201)는 에러 보고를 가이드하기 위한 에러 보고 가이드 화면을 표시할 수 있다. 일 실시예에서 상기 에러 보고 가이드 화면은 전자 장치(201)가 에러 보고를 서버(310)로 전송할 것을 요청하는 오브젝트(예를 들어 에러 보고 버튼(1906))을 포함할 수 있다. 동작 1316에서 전자 장치(201)는 상기 에러 보고 가이드 화면의 상기 에러 보고 버튼을 통해 사용자 입력을 수신할 수 있다. 동작 1318에서 전자 장치(201)는 상기 사용자 입력에 응답하여 에러 보고 메시지(예를 들어 "Send log data")를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 에러 보고 메시지는 동작 1024(예를 들어 도 10의 동작 1024)에서 획득한 연결 정보, 동작 1026(예를 들어 도 10의 동작 1026)에서 획득한 장치 로그 데이터, 또는 동작 1028의 에러 핸들링 결과와 관련된 정보 중 적어도 하나를 포함할 수 있다. 서버(310)는 상기 연결 정보와 상기 장치 로그 데이터를 저장할 수 있다.In operation 1312, the electronic device 201 may disconnect from the controlled device 320 as it confirms that the controlled device 320 is connected to the server 310 through the status message of operation 1310. In operation 1314, the electronic device 201 may display an error reporting guide screen to guide error reporting. In one embodiment, the error reporting guide screen may include an object (for example, an error reporting button 1906) that requests the electronic device 201 to transmit an error report to the server 310. In operation 1316, the electronic device 201 may receive a user input through the error reporting button on the error reporting guide screen. In operation 1318, the electronic device 201 may transmit an error reporting message (eg, “Send log data”) to the server 310 in response to the user input. In one embodiment, the error reporting message includes connection information obtained in operation 1024 (e.g., operation 1024 of FIG. 10), device log data obtained in operation 1026 (e.g., operation 1026 of FIG. 10), or operation 1028. It may include at least one piece of information related to error handling results. Server 310 may store the connection information and the device log data.

도 14는 일 실시예에 따라 비보안 연결을 통해 피제어 장치의 직접 연결 진단을 실행하는 절차를 설명하기 위한 신호 흐름도를 나타낸 것이다. 실시예들에서 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 14 is a signal flow diagram illustrating a procedure for executing direct connection diagnosis of a controlled device through a non-secure connection according to an embodiment. In embodiments, at least one of the operations described below may be omitted, modified, or changed in order.

도 14를 참조하면, 동작 1400은 전자 장치(201)가 피제어 장치(320)와 통신 연결(예를 들어 D2D 연결)을 수립하는 동작을 의미할 수 있다. 일 실시예에서 동작 1400은 도 10에 도시된 동작 1002, 동작 1004, 동작 1006, 동작 1008, 동작 1010, 동작 1012, 동작 1014, 동작 1016, 동작 1018, 또는 동작 1020 중 적어도 하나를 포함할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)에 대한 크리덴셜 정보를 가지고 있지 않기 때문에 소유권 확인을 수행하지 못할 수 있다. 일 실시예에서 전자 장치(201)는 다중 소유권(multi ownership)을 지원하지 않으며, 기존 소유권 확인과 관련된 크리덴셜 정보가 서버(310)에서 리셋되었기 때문에 소유권 확인을 수행하지 못하고 동작 1402로 진행할 수 있다.Referring to FIG. 14, operation 1400 may refer to an operation in which the electronic device 201 establishes a communication connection (eg, D2D connection) with the controlled device 320. In one embodiment, operation 1400 may include at least one of operation 1002, operation 1004, operation 1006, operation 1008, operation 1010, operation 1012, operation 1014, operation 1016, operation 1018, or operation 1020 shown in FIG. 10. . In one embodiment, the electronic device 201 may not be able to perform ownership verification because it does not have credential information for the controlled device 320. In one embodiment, the electronic device 201 does not support multi ownership, and because credential information related to existing ownership verification has been reset in the server 310, the electronic device 201 may not perform ownership verification and proceed to operation 1402. .

동작 1402에서 전자 장치(201)는 동작 1400에서 수립한 D2D 연결을 통해 피제어 장치(320)로부터 오프라인 에러 코드를 포함하는 연결 정보를 수신할 수 있다. 일 실시예에서 연결 정보는 <표 3>의 필드들 중 적어도 하나를 포함할 수 있다. 일 실시예에서 D2D 연결은 소유권 확인이 되지 않은 비보안 연결로 간주되기 때문에 상기 연결 정보는 ap_mac을 포함하지 않을 수 있다. 일 실시예에서 오프라인 에러 코드는 <표 4>의 에러 코드 값들 중 하나를 포함할 수 있다. In operation 1402, the electronic device 201 may receive connection information including an offline error code from the controlled device 320 through the D2D connection established in operation 1400. In one embodiment, connection information may include at least one of the fields in <Table 3>. In one embodiment, the connection information may not include ap_mac because the D2D connection is considered an insecure connection for which ownership has not been confirmed. In one embodiment, the offline error code may include one of the error code values in <Table 4>.

동작 1404에서 전자 장치(201)는 상기 D2D 연결을 통해 피제어 장치(320)로부터 장치 로그 데이터를 수신할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)에게 장치 로그 데이터의 생성을 요청하고, 상기 피제어 장치(320)로부터 상기 생성된 장치 로그 데이터(예를 들어 로그 데이터의 덤프 파일)를 수신할 수 있다.In operation 1404, the electronic device 201 may receive device log data from the controlled device 320 through the D2D connection. In one embodiment, the electronic device 201 requests the controlled device 320 to generate device log data, and receives the generated device log data (e.g., a dump file of log data) from the controlled device 320. can receive.

동작 1406에서 전자 장치(201)는 피제어 장치(320)를 위한 에러 핸들링을 실행할 수 있다. 일 실시예에서 에러 핸들링은 피제어 장치(320)로 상기 오프라인 에러 코드 및 상기 피제어 장치(320)의 장치 타입에 대응하는 복구 명령을 전송하는 동작과, 서버(310)에게 피제어 장치(320)의 연결 상태를 확인하는 동작을 포함할 수 있다. 일 실시예에서 전자 장치(201)는 상기 오프라인 에러 코드를 기반으로 조치 가이드를 사용자에게 표시할 수 있고, 사용자 입력에 응답하여 상기 복구 명령을 피제어 장치(320)로 전송할 수 있다. In operation 1406, the electronic device 201 may perform error handling for the controlled device 320. In one embodiment, error handling includes transmitting the offline error code and a recovery command corresponding to the device type of the controlled device 320 to the controlled device 320, and sending the controlled device 320 to the server 310. ) may include an operation to check the connection status. In one embodiment, the electronic device 201 may display an action guide to the user based on the offline error code and transmit the recovery command to the controlled device 320 in response to a user input.

일 실시예에서 동작 1400에서 수립된 D2D 연결은 소유권 확인이 되지 않아 비보안 연결로 간주될 수 있기 때문에 동작 1406에서 피제어 장치(320)는 전자 장치(201)로부터의 복구 명령에 응답하여 사용자 확인을 실행할 수 있다. 일 실시예에서 피제어 장치(320)는 상기 복구 명령에 대응하는 기능을 실행하기 이전에 사용자 확인을 위한 팝업 화면을 표시할 수 있고, 상기 팝업 화면을 통해 상기 기능의 실행을 승인하는 사용자 입력을 수신하면 상기 기능을 실행할 수 있다. 일 실시예에서 동작 1406은 도 13의 동작 1028과 동일하거나 유사할 수 있다.In one embodiment, because the D2D connection established in operation 1400 does not verify ownership and may be considered an insecure connection, in operation 1406 the controlled device 320 performs user confirmation in response to a recovery command from the electronic device 201. It can be run. In one embodiment, the controlled device 320 may display a pop-up screen for user confirmation before executing the function corresponding to the recovery command, and may receive a user input approving execution of the function through the pop-up screen. Once received, the above function can be executed. In one embodiment, operation 1406 may be the same or similar to operation 1028 of FIG. 13 .

동작 1408에서 전자 장치(201)는 상기 에러 핸들링의 처리 결과를 나타내는 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 에러 보고 메시지는 상기 오프라인 에러 코드 및/또는 상기 장치 로그 데이터를 포함할 수 있다. 일 실시예에서 상기 에러 보고 메시지는 전자 장치(201)에 표시되는 에러 보고 버튼(예를 들어 에러 보고 버튼(1906))에 대한 사용자 입력에 응답하여 전송될 수 있다. 일 실시예에서 전자 장치(201)는 상기 에러 핸들링이 완료된 이후 피제어 장치(320)와의 D2D 연결을 해지할 수 있다. 일 실시예에서 동작 1408은 도 13의 동작 1030과 동일하거나 유사할 수 있다.In operation 1408, the electronic device 201 may transmit an error reporting message indicating the result of the error handling to the server 310. In one embodiment, the error reporting message may include the offline error code and/or the device log data. In one embodiment, the error reporting message may be transmitted in response to a user input to an error reporting button (eg, error reporting button 1906) displayed on the electronic device 201. In one embodiment, the electronic device 201 may terminate the D2D connection with the controlled device 320 after the error handling is completed. In one embodiment, operation 1408 may be the same or similar to operation 1030 of FIG. 13 .

도 15는 일 실시예에 따라 소프트 AP 모드를 이용하여 피제어 장치의 직접 연결 진단을 실행하는 절차를 설명하기 위한 신호 흐름도를 나타낸 것이다. 실시예들에서 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.Figure 15 shows a signal flow diagram to explain a procedure for executing direct connection diagnosis of a controlled device using soft AP mode according to an embodiment. In embodiments, at least one of the operations described below may be omitted, modified, or changed in order.

도 15를 참조하면, 동작 1500은 전자 장치(201)가 피제어 장치(320)와 통신 연결(예를 들어 D2D 연결)을 수립하는 동작을 의미할 수 있다. 일 실시예에서 동작 1400은 도 10에 도시된 동작 1002, 동작 1004, 동작 1006, 동작 1008, 동작 1010, 동작 1012, 동작 1014, 또는 동작 1016, 중 적어도 하나 및 동작 1502, 동작 1504, 동작 1506, 또는 동작 1508 중 적어도 하나를 포함할 수 있다. 일 실시예에서 동작 1016의 가이드 화면은 피제어 장치(320)를 소프트 AP 모드로 변경하는 방식을 설명하는 가이드 문구를 포함할 수 있다. 상기 가이드 문구에 따라 사용자는 수동 조작을 통해 피제어 장치(320)를 소프트 AP 모드로 설정할 수 있다. Referring to FIG. 15, operation 1500 may refer to an operation of the electronic device 201 establishing a communication connection (eg, D2D connection) with the controlled device 320. In one embodiment, operation 1400 includes at least one of operation 1002, operation 1004, operation 1006, operation 1008, operation 1010, operation 1012, operation 1014, or operation 1016, and operations 1502, 1504, and 1506 shown in FIG. 10. Alternatively, it may include at least one of operation 1508. In one embodiment, the guide screen of operation 1016 may include guide text explaining how to change the controlled device 320 to the soft AP mode. According to the above guide text, the user can set the controlled device 320 to soft AP mode through manual operation.

동작 1502에서 피제어 장치(320)는 소프트 AP 모드로 진입하여 Wi-Fi 브로드캐스트 신호(예를 들어 비콘 신호)를 일정 간격으로 방송할 수 있다. 일 실시예에서 피제어 장치(320)는 장치 로그 데이터의 전달을 위해 HTTP 서버로 동작하기 시작할 수 있다.In operation 1502, the controlled device 320 may enter the soft AP mode and broadcast a Wi-Fi broadcast signal (for example, a beacon signal) at regular intervals. In one embodiment, the controlled device 320 may start operating as an HTTP server to deliver device log data.

동작 1504에서 전자 장치(201)는 장치 스캔을 통해 피제어 장치(320)를 발견할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)로부터 방송되는 비콘 신호로부터 획득한 식별 정보(예를 들어 MAC 주소 및/또는 일련 번호)가 동작 1004에서 획득한 장치 식별 정보에 포함되는 식별 정보와 일치하는지 확인함으로써 피제어 장치(320)를 타게팅할 수 있다. 동작 1506에서 전자 장치(201)는 피제어 장치(320)와 D2D 연결(예를 들어 Wi-Fi 연결)을 수립할 수 있다. 동작 1508에서 전자 장치(201)는 상기 D2D 연결 상에서 인증서 기반의 보안 세션(secure session with certificate)을 피제어 장치(320)와 수립할 수 있다.In operation 1504, the electronic device 201 may discover the controlled device 320 through device scanning. In one embodiment, the electronic device 201 includes identification information (e.g., MAC address and/or serial number) obtained from a beacon signal broadcast from the controlled device 320 in the device identification information obtained in operation 1004. The controlled device 320 can be targeted by checking whether it matches the identification information. In operation 1506, the electronic device 201 may establish a D2D connection (eg, Wi-Fi connection) with the controlled device 320. In operation 1508, the electronic device 201 may establish a secure session with a certificate based on the D2D connection with the controlled device 320.

동작 1510에서 전자 장치(201)는 동작 1500에서 수립한 D2D 연결을 통해 피제어 장치(320)로부터 오프라인 에러 코드를 포함하는 연결 정보를 수신할 수 있다. 일 실시예에서 연결 정보는 <표 3>의 필드들 중 적어도 하나를 포함할 수 있다. 일 실시예에서 오프라인 에러 코드는 <표 4>의 에러 코드 값들 중 하나를 포함할 수 있다. In operation 1510, the electronic device 201 may receive connection information including an offline error code from the controlled device 320 through the D2D connection established in operation 1500. In one embodiment, connection information may include at least one of the fields in <Table 3>. In one embodiment, the offline error code may include one of the error code values in <Table 4>.

동작 1512에서 전자 장치(201)는 상기 D2D 연결을 통해 피제어 장치(320)로부터 장치 로그 데이터를 수신할 수 있다. 일 실시예에서 전자 장치(201)는 피제어 장치(320)에게 장치 로그 데이터의 생성을 요청하고, 상기 피제어 장치(320)로부터 상기 생성된 장치 로그 데이터(예를 들어 로그 데이터의 덤프 파일)를 수신할 수 있다.In operation 1512, the electronic device 201 may receive device log data from the controlled device 320 through the D2D connection. In one embodiment, the electronic device 201 requests the controlled device 320 to generate device log data, and receives the generated device log data (e.g., a dump file of log data) from the controlled device 320. can receive.

동작 1514에서 전자 장치(201)는 피제어 장치(320)를 위한 에러 핸들링을 실행할 수 있다. 일 실시예에서 동작 1514는 도 13의 동작 1028과 동일하거나 유사할 수 있다. 동작 1516에서 전자 장치(201)는 상기 에러 핸들링의 처리 결과를 나타내는 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 동작 1516은 도 13의 동작 1030과 동일하거나 유사할 수 있다.In operation 1514, the electronic device 201 may perform error handling for the controlled device 320. In one embodiment, operation 1514 may be the same or similar to operation 1028 of FIG. 13 . In operation 1516, the electronic device 201 may transmit an error reporting message indicating the result of the error handling to the server 310. In one embodiment, operation 1516 may be the same or similar to operation 1030 of FIG. 13 .

도 16은 일 실시예에 따라 연결 정보와 장치 로그 데이터를 수신하는 절차를 설명하기 위한 신호 흐름도이다. 실시예들에서 후술되는 동작들 중 적어도 하나는 생략되거나 변형되거나 순서 변경될 수 있다.FIG. 16 is a signal flow diagram illustrating a procedure for receiving connection information and device log data according to an embodiment. In embodiments, at least one of the operations described below may be omitted, modified, or changed in order.

도 16을 참조하면, 동작 1510에서 전자 장치(201)는 D2D 연결(예를 들어 도 10의 동작 1020에서 수립된 D2D 연결)(예를 들어 Wi-Fi 연결 상의 HTTP 보안 세션)을 통해 피제어 장치(320)로부터 연결 정보를 수신할 수 있다. 일 실시예에서 동작 1510은 동작 1602, 동작 1604, 또는 동작 1606 중 적어도 하나를 포함할 수 있다.Referring to FIG. 16, in operation 1510, the electronic device 201 connects the controlled device through a D2D connection (e.g., the D2D connection established in operation 1020 of FIG. 10) (e.g., an HTTP security session on a Wi-Fi connection). Connection information can be received from (320). In one embodiment, operation 1510 may include at least one of operation 1602, operation 1604, or operation 1606.

동작 1602에서 전자 장치(201)는 피제어 장치(320)에게 연결 정보를 요청하는 요청 메시지(예를 들어 "Request (connectioninfo)")를 전송할 수 있다. 일 실시예에서 전자 장치(201)는 퍼미션 확인(permission check)을 위해 상기 요청 메시지의 HTTPS 헤더에 API(application programming interface) 키 및/또는 장치 ID를 포함시킬 수 있다. 피제어 장치(320)는 상기 API 키 및/또는 장치 ID를 자신이 저장하고 있는 장치 정보와 비교하여 동일한 경우, 동작 1604로 진행할 수 있다.In operation 1602, the electronic device 201 may transmit a request message (eg, “Request (connectioninfo)”) requesting connection information to the controlled device 320. In one embodiment, the electronic device 201 may include an API (application programming interface) key and/or a device ID in the HTTPS header of the request message for permission check. The controlled device 320 may compare the API key and/or device ID with the device information it stores, and if they are the same, proceed to operation 1604.

동작 1604에서 피제어 장치(320)는 연결 정보를 포함하는 응답 메시지(예를 들어 "Response (connectioninfo)")를 전자 장치(201)로 전송할 수 있다. 동작 1606에서 전자 장치(201)는 상기 연결 정보를 포함하는 로그 데이터를 생성할 수 있다. 일 실시예에서 상기 로그 데이터는 전자 장치(201)의 단말 로그(mobile log)를 포함할 수 있다.In operation 1604, the controlled device 320 may transmit a response message (eg, “Response (connectioninfo)”) including connection information to the electronic device 201. In operation 1606, the electronic device 201 may generate log data including the connection information. In one embodiment, the log data may include a mobile log of the electronic device 201.

동작 1512에서 전자 장치(201)는 동작 1500(예를 들어, 도 15의 동작 1500)에서 수립된 D2D 연결(예를 들어 Wi-Fi 연결 상의 HTTP 보안 세션)을 통해 피제어 장치(320)로부터 장치 로그 데이터를 수신할 수 있다. 일 실시예에서 동작 1512는 동작 1608, 동작 1610, 동작 1612, 또는 동작 1614 중 적어도 하나를 포함할 수 있다.In operation 1512, the electronic device 201 receives a device from the controlled device 320 through the D2D connection (e.g., HTTP security session over a Wi-Fi connection) established in operation 1500 (e.g., operation 1500 of FIG. 15). Log data can be received. In one embodiment, operation 1512 may include at least one of operation 1608, operation 1610, operation 1612, or operation 1614.

동작 1608에서 전자 장치(201)는 피제어 장치(320)에게 장치 로그 데이터를 생성하도록 요청하기 위한 요청 메시지(예를 들어 "Request create log (devicelog.dump)")를 전송할 수 있다. 동작 1610에서 피제어 장치(320)는 장치 로그 데이터를 생성하고 응답 메시지(예를 들어 "Response ok")를 전자 장치(201)로 전송할 수 있다. 동작 1612에서 전자 장치(201)는 피제어 장치(320)에게 타임 스탬프를 포함하는 장치 로그 데이터(예를 들어 장치 로그의 덤프 파일)를 요청하는 요청 메시지(예를 들어 "Request get log (devicelog.dump)")를 전송할 수 있다. 동작 1614에서 피제어 장치(320)는 상기 장치 로그 데이터를 포함하는 응답 메시지(예를 들어 "Response (devicelog.dump)")를 전자 장치(201)로 전송할 수 있다. 일 실시예에서 동작 1608 및/또는 동작 1612의 요청 메시지는 전자 장치(201)가 알고 있는 API 키 및/또는 장치 ID를 포함할 수 있으며, 피제어 장치(320)는 상기 API 키 및/또는 장치 ID를 기반으로 전자 장치(201)의 퍼미션 확인을 수행하고, 퍼미션 확인에 통과한 경우에 동작 1610 및/또는 동작 1614의 응답 메시지를 전송할 수 있다.In operation 1608, the electronic device 201 may transmit a request message (for example, “Request create log (devicelog.dump)”) to request the controlled device 320 to create device log data. In operation 1610, the controlled device 320 may generate device log data and transmit a response message (eg, “Response ok”) to the electronic device 201. In operation 1612, the electronic device 201 sends a request message (e.g., “Request get log (devicelog. dump)") can be sent. In operation 1614, the controlled device 320 may transmit a response message (eg, “Response (devicelog.dump)”) including the device log data to the electronic device 201. In one embodiment, the request message of operations 1608 and/or 1612 may include an API key and/or a device ID known to the electronic device 201, and the controlled device 320 may use the API key and/or the device. The permission of the electronic device 201 may be checked based on the ID, and if the permission check passes, the response message in operation 1610 and/or operation 1614 may be transmitted.

일 실시예에서 동작 1028, 동작 1406, 또는 동작 1514 중 적어도 하나에서 전자 장치(201)가 피제어 장치(320)로 전송하는 복구 명령은 오프라인 에러 코드에 대응하는 조치를 수행하기 위한 기능을 포함할 수 있다. 일 실시예에서 상기 복구 명령은 피제어 장치(320)의 재시작을 지시할 수 있다.In one embodiment, the recovery command transmitted by the electronic device 201 to the controlled device 320 in at least one of operation 1028, operation 1406, or operation 1514 may include a function for performing an action corresponding to an offline error code. You can. In one embodiment, the recovery command may indicate restart of the controlled device 320.

일 실시예에서 오프라인 에러 코드가 <표 4>의 NE11-1, NE11-4, 또는 NE11-5인 경우, 전자 장치(201)는 피제어 장치(320)가 연결 가능한 Wi-Fi 스캔 리스트를 피제어 장치(320)로 요청하고, 피제어 장치(320)로부터 적어도 하나의 Wi-Fi 네트워크를 포함하는 Wi-Fi 스캔 리스트를 수신할 수 있다. 상기 Wi-Fi 스캔 리스트는 지원 주파수('supported Frequency')(예를 들어 2.4G, 5G 또는 6G 중 적어도 하나), 지원 인증 타입('supported Auth Type'), 또는 Wi-Fi 스캔 정보 중 적어도 하나를 포함할 수 있다. 일 실시예에서 상기 Wi-Fi 스캔 정보는 SSID, 인증 타입(authentication type), 암호화 타입(encryption type), MAC 주소, 주파수, 또는 RSSI 중 적어도 하나를 포함할 수 있다.In one embodiment, when the offline error code is NE11-1, NE11-4, or NE11-5 in <Table 4>, the electronic device 201 avoids the Wi-Fi scan list to which the controlled device 320 can connect. A request may be made to the control device 320 and a Wi-Fi scan list including at least one Wi-Fi network may be received from the controlled device 320. The Wi-Fi scan list includes at least one of supported frequency ('supported frequency') (e.g., at least one of 2.4G, 5G, or 6G), supported authentication type ('supported Auth Type'), or Wi-Fi scan information. may include. In one embodiment, the Wi-Fi scan information may include at least one of SSID, authentication type, encryption type, MAC address, frequency, or RSSI.

일 실시예에서 전자 장치(320)는 상기 Wi-Fi 스캔 리스트를 표시하고, 사용자가 상기 Wi-Fi 스캔 리스트에서 적어도 하나의 AP를 선택하면 상기 선택된 AP와 관련된 Wi-Fi 정보를 상기 복구 명령에 포함하여 피제어 장치(320)로 전송할 수 있다. 상기 Wi-Fi 정보는 예를 들어 SSID, 비밀번호, 인증 타입, 또는 암호화 타입 중 적어도 하나를 포함할 수 있다. 일 실시예에서 상기 복구 명령은 상기 Wi-Fi 정보를 이용하는 Wi-Fi 업데이트를 지시할 수 있다.In one embodiment, the electronic device 320 displays the Wi-Fi scan list, and when the user selects at least one AP from the Wi-Fi scan list, the electronic device 320 sends Wi-Fi information related to the selected AP to the recovery command. It can be transmitted to the controlled device 320. The Wi-Fi information may include, for example, at least one of SSID, password, authentication type, or encryption type. In one embodiment, the recovery command may direct Wi-Fi update using the Wi-Fi information.

본 개시의 실시예들에 따라 피제어 장치를 관리하는 전자 장치 및 그 동작 방법은, 오프라인 상태인 피제어 장치의 직접 연결 진단을 통해 피제어 장치의 오프라인 원인을 사용자에게 제공하고 사용자의 자가 조치를 위해 피제어 장치의 에러 상황에 적합한 솔루션을 제공할 수 있다.An electronic device for managing a controlled device and its operating method according to embodiments of the present disclosure provide the user with the cause of the offline controlled device through direct connection diagnosis of the controlled device that is offline and enable the user to take self-action. Therefore, a solution suitable for the error situation of the controlled device can be provided.

도 17은 일 실시예에 따라 일반 진단을 실행하는 사용자 인터페이스 화면을 나타낸 도면이다.Figure 17 is a diagram illustrating a user interface screen for executing general diagnosis according to one embodiment.

도 17을 참조하면, 전자 장치(201)는 피제어 장치(320)가 직접 연결 진단을 지원하지 않는 경우 일반 진단 절차(예를 들어 도 7의 동작 720)를 실행하면서 일반 진단 실행 화면(1702)을 디스플레이 모듈(260)에 표시할 수 있다. 일반 진단 절차를 통해 전자 장치(201)는 클라이언트 어플리케이션의 소프트웨어 버전, 클라우드 상태, 장치 정보, 또는 장치 동작 상태 중 적어도 하나를 검사할 수 있다.Referring to FIG. 17, when the controlled device 320 does not support direct connection diagnosis, the electronic device 201 executes a general diagnosis procedure (for example, operation 720 of FIG. 7) while displaying a general diagnosis execution screen 1702. can be displayed on the display module 260. Through a general diagnostic procedure, the electronic device 201 may check at least one of the software version of the client application, cloud status, device information, or device operation status.

도 18a, 도 18b 및 도 18c는 일 실시예에 따라 직접 연결 진단을 실행하는 사용자 인터페이스 화면들을 나타낸 도면이다.FIGS. 18A, 18B, and 18C are diagrams illustrating user interface screens for executing direct connection diagnosis according to an embodiment.

도 18a를 참조하면, 전자 장치(201)는 피제어 장치(320)가 직접 연결 진단을 지원하는 경우 직접 연결 진단 절차(예를 들어 도 7의 동작 730)를 실행하면서 화면(1802)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 전자 장치(201)는 직접 연결 진단 절차(730)에 포함되는 일반 진단(예를 들어 도 7의 동작 732)을 실행하고, 상기 일반 진단(732)의 실행 결과 문제가 발견되지 않은 경우에 상기 화면(1802)을 표시할 수 있다. 예를 들어 화면(1802)은 상기 일반 진단(732)의 실행 결과 문제가 발견되지 않았음을 알리는 문구와 함께, 직접 연결 진단을 위해 피제어 장치(320)에 연결하도록 가이드하는 문구를 포함할 수 있다. 일 실시예에서 제1 화면(1802)은 동작 1010 이후에 전자 장치(201)에 의해 표시될 수 있다.Referring to FIG. 18A, when the controlled device 320 supports direct connection diagnosis, the electronic device 201 displays the screen 1802 while executing a direct connection diagnosis procedure (for example, operation 730 of FIG. 7). It can be displayed at (260). In one embodiment, the electronic device 201 executes a general diagnosis (e.g., operation 732 of FIG. 7) included in the direct connection diagnosis procedure 730, and if no problem is found as a result of executing the general diagnosis 732, In this case, the screen 1802 may be displayed. For example, the screen 1802 may include a phrase indicating that no problems were found as a result of executing the general diagnosis 732, as well as a phrase guiding connection to the controlled device 320 for direct connection diagnosis. there is. In one embodiment, the first screen 1802 may be displayed by the electronic device 201 after operation 1010.

도 18b를 참조하면, 전자 장치(201)는 서버(310)로부터 수신한 셋업 데이터를 기반으로 생성한 가이드 화면(1804)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 가이드 화면(1804)은 피제어 장치(320)의 장치 이미지와 가이드 문구(예를 들어 "장치의 전원을 켜고 AP가 나타날 때까지 버튼을 3초 이상 누르세요")를 포함할 수 있다. 일 실시예에서 가이드 화면(1804)은 동작 1016에서 전자 장치(201)에 의해 표시될 수 있다.Referring to FIG. 18B , the electronic device 201 may display a guide screen 1804 generated based on setup data received from the server 310 on the display module 260. In one embodiment, the guide screen 1804 may include a device image of the controlled device 320 and guide phrases (e.g., “Turn on the device and press the button for more than 3 seconds until the AP appears”). there is. In one embodiment, the guide screen 1804 may be displayed by the electronic device 201 in operation 1016.

도 18c를 참조하면, 전자 장치(201)는 가이드 화면(1804)을 통해 피제어 장치(320)와의 연결을 요청하는 사용자 입력을 수신하고, 화면(1806)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 화면(1806)은 피제어 장치(320)와 연결중임을 알리는 문구를 포함할 수 있다. 일 실시예에서 화면(1806)은 동작 1020 또는 동작 1506 동안 표시될 수 있다. Referring to FIG. 18C, the electronic device 201 may receive a user input requesting connection to the controlled device 320 through the guide screen 1804 and display the screen 1806 on the display module 260. there is. In one embodiment, the screen 1806 may include a phrase indicating that a connection is being made with the controlled device 320. In one embodiment, screen 1806 may be displayed during operation 1020 or operation 1506.

도 19a 및 도 19b는 다양한 실시예들에 따라 에러 핸들링 및 에러 보고를 실행하는 화면들을 나타낸 도면이다.19A and 19B are diagrams illustrating screens for performing error handling and error reporting according to various embodiments.

도 19a를 참조하면, 전자 장치(201)는 피제어 장치(320)로부터 수신된 연결 정보 및 장치 로그 데이터를 기반으로 오프라인 상태의 원인을 분석하면서 화면(1902)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 화면(1902)은 진단 데이터 수집, 장치 정보 분석, 및/또는 장애 평가를 알리는 문구를 포함할 수 있다. Referring to FIG. 19A, the electronic device 201 displays the screen 1902 on the display module 260 while analyzing the cause of the offline state based on the connection information and device log data received from the controlled device 320. You can. In one embodiment, screen 1902 may include text announcing diagnostic data collection, device information analysis, and/or failure assessment.

도 19b를 참조하면, 전자 장치(201)는 피제어 장치(320)의 오프라인 상태의 원인을 분석한 결과에 따라 생성된 조치 가이드를 포함하는 화면(1904)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 화면(1904)은 클라이언트 어플리케이션의 소프트웨어 버전, 클라우드 상태, 장치 정보, 또는 장치 동작 상태 중 적어도 하나에 대한 검사 결과를 나타내는 문구를 포함할 수 있다. 일 실시예에서 장애가 발견되지 않은 경우 화면(1904)은 조치 가이드를 제공하지 않을 수 있다. 일 실시예에서 장애가 발견되는 경우 화면(1904)은 에러 보고 전송을 위한 오브젝트(1906)(예를 들어 에러 보고 버튼)를 포함할 수 있다. 일 실시예에서 화면(1904)은 동작 1302에서 표시될 수 있다.Referring to FIG. 19B, the electronic device 201 may display a screen 1904 including an action guide generated according to the results of analyzing the cause of the offline state of the controlled device 320 on the display module 260. there is. In one embodiment, the screen 1904 may include text indicating a test result for at least one of the software version of the client application, cloud status, device information, or device operating status. In one embodiment, if a fault is not found, screen 1904 may not provide action guidance. In one embodiment, when a failure is detected, the screen 1904 may include an object 1906 (for example, an error report button) for sending an error report. In one embodiment, screen 1904 may be displayed in operation 1302.

도 20은 다양한 실시예들에 따라 비보안 연결을 통해 에러 핸들링을 실행하는 화면들을 나타내는 도면이다.FIG. 20 is a diagram illustrating screens for executing error handling through a non-secure connection according to various embodiments.

도 20을 참조하면, 전자 장치(201)는 피제어 장치(320)의 오프라인 상태의 원인을 분석한 결과에 따라 생성된 조치 가이드를 포함하는 조치 가이드 화면(2002)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 조치 가이드 화면(2002)은 장애의 원인을 나타내는 문구(예를 들어 "Wi-Fi 비밀번호가 잘못되었습니다") 및 조치 가이드(예를 들어 "장치에서 연결 테스트를 실행하고 정확한 비밀번호를 입력하세요" 및/또는 "장치에서 추가적으로 문제를 해결하기 위하여 아래 버튼을 누르세요")를 포함할 수 있다. 일 실시예에서 피제어 장치(320)는 TV일 수 있고, 조치 가이드 화면(2002)은 피제어 장치(320)에서 에러 핸들링을 계속할 것을 확인하는 버튼(예를 들어 "Continue on TV")을 포함할 수 있다. 일 실시예에서 조치 가이드 화면(2002)은 동작 1302에서 표시될 수 있다.Referring to FIG. 20, the electronic device 201 displays an action guide screen 2002 on the display module 260, including an action guide generated according to the results of analyzing the cause of the offline state of the controlled device 320. can do. In one embodiment, the action guide screen 2002 includes a phrase indicating the cause of the failure (e.g., “Wi-Fi password is incorrect”) and an action guide (e.g., “Run a connection test on the device and enter the correct password.”) “Please do this” and/or “Click the button below to further troubleshoot your device”). In one embodiment, the controlled device 320 may be a TV, and the action guide screen 2002 includes a button (e.g., “Continue on TV”) to confirm that the controlled device 320 will continue error handling. can do. In one embodiment, action guide screen 2002 may be displayed in operation 1302.

일 실시예에서 전자 장치(201)는 상기 버튼을 통해 사용자 입력을 수신하고, 피제어 장치(320)(예를 들어 TV)로 에러 핸들링의 추가 동작을 실행할 것을 지시하는 복구 명령을 전송할 수 있다. 피제어 장치(320)는 상기 복구 명령에 응답하여 연결 테스트를 위한 화면(2004)을 표시할 수 있다. 연결 테스트 화면(2004)는 예를 들어 연결 테스트를 실행하는 버튼을 포함할 수 있고, 상기 버튼에서 사용자 입력이 수신되면 피제어 장치(320)는 자체 기능에 따라 허브 연결 테스트를 실행할 수 있다. 예를 들어, 피제어 장치(320)는 허브 연결 테스트에 기반한 화면(2006)을 표시할 수 있다. 일 실시예에서 피제어 장치(320)는 상기 허브 연결 테스트의 결과를 전자 장치(201)로 전송할 수 있다. In one embodiment, the electronic device 201 may receive a user input through the button and transmit a recovery command instructing the controlled device 320 (eg, TV) to perform additional error handling operations. The controlled device 320 may display a screen 2004 for a connection test in response to the recovery command. The connection test screen 2004 may include, for example, a button for executing a connection test, and when a user input is received from the button, the controlled device 320 may execute a hub connection test according to its own function. For example, the controlled device 320 may display a screen 2006 based on a hub connection test. In one embodiment, the controlled device 320 may transmit the results of the hub connection test to the electronic device 201.

일 실시예에서 전자 장치(201)는 상기 허브 연결 테스트의 결과를 수신함에 근거하여 결과 화면(2008)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 상기 결과 화면(2008)은 피제어 장치(320)이 온라인 상태가 되었음을 알리는 문구를 포함할 수 있다. 일 실시예에서 상기 결과 화면(2008)은 피제어 장치(320)과 관련된 에러 보고를 전송하는 것을 지시하는 에러 보고 버튼을 포함할 수 있고, 상기 에러 보고 버튼에서 사용자 입력을 수신함에 응답하여 전자 장치(201)는 피제어 장치(320)의 에러 핸들링에 대한 결과를 포함하는 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 결과 화면(2008)은 동작 1314에서 표시될 수 있다.In one embodiment, the electronic device 201 may display a result screen 2008 on the display module 260 based on receiving the result of the hub connection test. In one embodiment, the result screen 2008 may include a phrase notifying that the controlled device 320 is online. In one embodiment, the result screen 2008 may include an error reporting button instructing to transmit an error report related to the controlled device 320, and in response to receiving a user input from the error reporting button, the electronic device (201) may transmit an error reporting message including the result of error handling of the controlled device (320) to the server (310). In one embodiment, the results screen 2008 may be displayed in operation 1314.

도 21은 다양한 실시예들에 따라 보안 연결을 통해 에러 핸들링을 실행하는 화면들을 나타내는 도면이다.FIG. 21 is a diagram illustrating screens for executing error handling through a secure connection according to various embodiments.

도 21을 참조하면, 전자 장치(201)는 피제어 장치(320)의 오프라인 상태의 원인을 분석한 결과에 따라 생성된 조치 가이드를 포함하는 조치 가이드 화면(2102)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 조치 가이드 화면(2102)은 전자 장치(201)가 오프라인 에러 코드에 따라 피제어 장치(320)의 오프라인 상태를 분석한 결과에 따른 가이드 문구(예를 들어 "공유기가 켜져 있는지 확인해 주세요", "공유기의 네트워크 이름을 확인해 주세요", "장치가 2.4GHz Wi-Fi 네트워크만을 지원하는 경우 2.4GHz, 네트워크로 연결해 주세요", "SSID가 변경되었다면 장치를 삭제하고 다시 연결하세요", "장치의 Wi-Fi 연결을 방해하는 다른 무선 장치를 제거해 주세요", "공유기를 끄고 다시 켜신 후 연결을 시도하세요", 또는 "공유기의 펌웨어를 최신으로 업데이트하세요")를 포함할 수 있다. 일 실시예에서 조치 가이드 화면(2102)은 피제어 장치(320)로 복구 명령을 전송할 것을 지시하는 버튼(2104)(예를 들어 "Reboot")을 포함할 수 있다. 상기 버튼(2104)을 통해 사용자 입력을 수신함에 응답하여 전자 장치(201)는 피제어 장치(320)로 복구 명령(예를 들어 리부트 명령)을 전송할 수 있다.Referring to FIG. 21, the electronic device 201 displays an action guide screen 2102 including an action guide generated according to the results of analyzing the cause of the offline state of the controlled device 320 on the display module 260. can do. In one embodiment, the action guide screen 2102 displays a guide phrase (e.g., "Please check if the router is turned on) according to the results of the electronic device 201 analyzing the offline state of the controlled device 320 according to the offline error code. ", "Please check the network name of the router", "If the device supports only 2.4GHz Wi-Fi networks, connect to a 2.4GHz network", "If the SSID has changed, delete the device and reconnect", "Device “Please remove any other wireless devices that are interfering with the Wi-Fi connection,” “Turn off the router and turn it back on, and then try to connect,” or “Update your router’s firmware to the latest.”) In one embodiment, the action guide screen 2102 may include a button 2104 (eg, “Reboot”) that instructs to transmit a recovery command to the controlled device 320. In response to receiving a user input through the button 2104, the electronic device 201 may transmit a recovery command (eg, reboot command) to the controlled device 320.

일 실시예에서 전자 장치(201)는 복구 명령을 전송하고 화면(2104)을 디스플레이 모듈(260)에 표시할 수 있다. 화면(2104)은 장치에 연결을 시도중임을 알리는 문구를 포함할 수 있다. 일 실시예에서 화면(2104)은 동작 1304, 동작 1308 또는 동작 1310 중 적어도 하나에서 표시될 수 있다.In one embodiment, the electronic device 201 may transmit a recovery command and display the screen 2104 on the display module 260. Screen 2104 may include text indicating that a connection is being attempted to the device. In one embodiment, screen 2104 may be displayed in at least one of operation 1304, operation 1308, or operation 1310.

일 실시예에서 전자 장치(201)는 피제어 장치(320)가 서버(310)에 연결되었음을 알리는 메시지(예를 들어 동작 1310의 상태 메시지)를 서버(310)로부터 수신하고 결과 화면(2106)을 디스플레이 모듈(260)에 표시할 수 있다. 결과 화면(2106)은 피제어 장치(320)이 온라인 상태가 되었음을 알리는 문구를 포함할 수 있다. 일 실시예에서 상기 결과 화면(2106)은 피제어 장치(320)와 관련된 에러 보고를 전송하는 것을 지시하는 에러 보고 버튼을 포함할 수 있고, 상기 에러 보고 버튼에서 사용자 입력을 수신함에 응답하여 전자 장치(201)는 피제어 장치(320)의 에러 핸들링에 대한 결과를 포함하는 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 결과 화면(2106)은 동작 1314에서 표시될 수 있다.In one embodiment, the electronic device 201 receives a message notifying that the controlled device 320 is connected to the server 310 (e.g., a status message of operation 1310) from the server 310 and displays a result screen 2106. It can be displayed on the display module 260. The result screen 2106 may include a phrase indicating that the controlled device 320 has come online. In one embodiment, the result screen 2106 may include an error reporting button instructing to transmit an error report related to the controlled device 320, and in response to receiving a user input from the error reporting button, the electronic device (201) may transmit an error reporting message including the result of error handling of the controlled device (320) to the server (310). In one embodiment, the results screen 2106 may be displayed in operation 1314.

도 22는 다양한 실시예들에 따라 에러 핸들링을 통해 네트워크 재선택을 가이드하는 화면들을 나타내는 도면이다.FIG. 22 is a diagram illustrating screens that guide network reselection through error handling according to various embodiments.

도 22를 참조하면, 전자 장치(201)는 피제어 장치(320)의 오프라인 상태의 원인을 분석한 결과에 따라 생성된 조치 가이드를 포함하는 조치 가이드 화면(2202)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 조치 가이드 화면(2202)은 전자 장치(201)가 오프라인 에러 코드에 따라 피제어 장치(320)의 오프라인 상태를 분석한 결과에 따른 가이드 문구(예를 들어 "장치에 설정된 Wi-Fi 비밀번호가 정확하지 않습니다")와 함께 Wi-Fi 재연결을 지시하는 버튼(2204)(예를 들어 "Connect to Wi-Fi")을 포함할 수 있다. 상기 버튼(2204)을 통해 사용자 입력을 수신함에 응답하여 전자 장치(201)는 피제어 장치(320)로 Wi-Fi 스캔 리스트를 요청할 수 있다.Referring to FIG. 22, the electronic device 201 displays an action guide screen 2202 on the display module 260, including an action guide generated according to the results of analyzing the cause of the offline state of the controlled device 320. can do. In one embodiment, the action guide screen 2202 displays a guide phrase (e.g., "Wi-Fi set on the device It may include a button 2204 (e.g., “Connect to Wi-Fi”) that instructs Wi-Fi reconnection along with “the password is incorrect.” In response to receiving a user input through the button 2204, the electronic device 201 may request a Wi-Fi scan list from the controlled device 320.

일 실시예에서 전자 장치(201)는 피제어 장치(320)로부터 수신한 Wi-Fi 스캔 리스트를 포함하는 화면(2206)을 디스플레이 모듈(260)에 표시할 수 있다. 일 실시예에서 화면(2206)은 피제어 장치(320)가 연결 가능한 적어도 하나의 네트워크 이름(예를 들어 Wi-Fi AP)을 포함할 수 있다. 화면(2206)에서 하나의 네트워크가 선택되면, 전자 장치(201)는 상기 선택된 네트워크와 관련된 Wi-Fi 정보를 포함하는 복구 명령을 피제어 장치(320)로 전송하고 화면(2208)을 디스플레이 모듈(260)에 표시할 수 있다. 화면(2208)은 장치에 연결을 시도중임을 알리는 문구를 포함할 수 있다. 일 실시예에서 화면(2208)은 동작 1304, 동작 1308 또는 동작 1310 중 적어도 하나에서 표시될 수 있다.In one embodiment, the electronic device 201 may display a screen 2206 including a Wi-Fi scan list received from the controlled device 320 on the display module 260. In one embodiment, the screen 2206 may include the name of at least one network (eg, Wi-Fi AP) to which the controlled device 320 can connect. When one network is selected on the screen 2206, the electronic device 201 transmits a recovery command containing Wi-Fi information related to the selected network to the controlled device 320 and displays the screen 2208 on the display module ( 260). Screen 2208 may include text indicating that a connection is being attempted to the device. In one embodiment, screen 2208 may be displayed in at least one of operation 1304, operation 1308, or operation 1310.

일 실시예에서 전자 장치(201)는 피제어 장치(320)가 서버(310)에 연결되었음을 알리는 메시지(예를 들어 동작 1310의 상태 메시지)를 서버(310)로부터 수신하고 결과 화면(2210)을 디스플레이 모듈(260)에 표시할 수 있다. 결과 화면(2210)은 피제어 장치(320)이 온라인 상태가 되었음을 알리는 문구를 포함할 수 있다. 일 실시예에서 상기 결과 화면(2210)은 피제어 장치(320)과 관련된 에러 보고를 전송하는 것을 지시하는 에러 보고 버튼을 포함할 수 있고, 상기 에러 보고 버튼에서 사용자 입력을 수신함에 응답하여 전자 장치(201)는 피제어 장치(320)의 에러 핸들링에 대한 결과를 포함하는 에러 보고 메시지를 서버(310)로 전송할 수 있다. 일 실시예에서 상기 결과 화면(2210)은 동작 1314에서 표시될 수 있다.In one embodiment, the electronic device 201 receives a message notifying that the controlled device 320 is connected to the server 310 (for example, a status message of operation 1310) from the server 310 and displays the result screen 2210. It can be displayed on the display module 260. The result screen 2210 may include a phrase indicating that the controlled device 320 is online. In one embodiment, the result screen 2210 may include an error reporting button instructing to transmit an error report related to the controlled device 320, and in response to receiving a user input from the error reporting button, the electronic device (201) may transmit an error reporting message including the result of error handling of the controlled device (320) to the server (310). In one embodiment, the results screen 2210 may be displayed in operation 1314.

일 실시예들에 따른 전자 장치(201)는 통신 회로(290) 및 상기 통신 회로와 작동적으로 연결된 적어도 하나의 프로세서(220)를 포함할 수 있다. 상기 적어도 하나의 프로세서는, 서버(310)로부터 외부 전자 장치(320)의 장치 정보를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하도록 구성될 수 있다. 상기 적어도 하나의 프로세서는 상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하도록 구성될 수 있다.The electronic device 201 according to one embodiment may include a communication circuit 290 and at least one processor 220 operatively connected to the communication circuit. The at least one processor may be configured to receive device information of the external electronic device 320 from the server 310. The at least one processor may be configured to display a guide screen that guides communication connection with the external electronic device based on the device information. The at least one processor may be configured to establish the communication connection with the external electronic device through the communication circuit based on a user input on the guide screen. The at least one processor may be configured to receive connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection. The at least one processor may be configured to transmit a recovery command to the external electronic device through the communication connection based on the error code and the device log data. The at least one processor may be configured to receive a message from the server notifying that the external electronic device is connected to the server.

일 실시예에서 상기 가이드 화면은, 상기 통신 연결을 가이드하는 문구 또는 상기 통신 연결의 수립을 실행하기 위한 오브젝트 중 적어도 하나를 포함할 수 있다.In one embodiment, the guide screen may include at least one of a phrase guiding the communication connection or an object for establishing the communication connection.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 에러 코드를 기반으로 처리된 상기 오프라인 상태와 관련된 조치 가이드 화면을 표시하고, 상기 조치 가이드 화면에 대한 사용자 입력에 기반하여 상기 복구 명령을 전송하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to display an action guide screen related to the offline state processed based on the error code and transmit the recovery command based on a user input to the action guide screen. You can.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 메시지를 수신함에 근거하여 상기 외부 전자 장치와의 상기 통신 연결을 해제하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to release the communication connection with the external electronic device based on receiving the message.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 통신 연결을 통해 상기 외부 전자 장치로 소유권(ownership)을 확인하기 위한 요청 메시지를 전송하고, 상기 외부 전자 장치로부터 제1 개인 식별 번호(PIN)를 포함하는 응답 메시지를 수신하고, 사용자로부터 제2 PIN을 수신하고, 상기 제1 PIN과 상기 제2 PIN이 일치하는 경우 상기 외부 전자 장치의 소유권 확인을 완료하도록 구성될 수 있다.In one embodiment, the at least one processor transmits a request message to confirm ownership to the external electronic device through the communication connection, and includes a first personal identification number (PIN) from the external electronic device. It may be configured to receive a response message, receive a second PIN from the user, and complete ownership verification of the external electronic device when the first PIN and the second PIN match.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치를 상기 서버에 등록하는 과정에서 획득한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하도록 구성될 수 있다. 일 실시예에서 상기 적어도 하나의 프로세서는 상기 외부 전자 장치의 오너 장치로부터 수신한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to confirm ownership of the external electronic device using credential information obtained in the process of registering the external electronic device with the server. In one embodiment, the at least one processor may be configured to confirm ownership of the external electronic device using credential information received from the owner device of the external electronic device.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 장치 정보에 상기 외부 전자 장치가 직접 연결 진단을 지원함을 나타내는 정보가 포함되어 있음을 확인하고, 상기 가이드 화면 내의 상기 직접 연결 진단을 실행하는 오브젝트를 활성화하고, 상기 직접 연결 진단을 실행하는 오브젝트를 통해 상기 사용자 입력을 수신함에 근거하여 상기 통신 연결을 수립하도록 구성될 수 있다.In one embodiment, the at least one processor determines that the device information includes information indicating that the external electronic device supports direct connection diagnosis, and activates an object that executes the direct connection diagnosis in the guide screen. and may be configured to establish the communication connection based on receiving the user input through an object executing the direct connection diagnosis.

일 실시예에서 상기 복구 명령은, 상기 외부 전자 장치에 대한 리부트 명령 또는 상기 외부 전자 장치가 연결할 수 있는 Wi-Fi 네트워크에 대한 Wi-Fi 정보 중 적어도 하나를 포함할 수 있다.In one embodiment, the recovery command may include at least one of a reboot command for the external electronic device or Wi-Fi information about a Wi-Fi network to which the external electronic device can connect.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 오프라인 에러 코드가 네트워크 에러를 나타내는 경우 상기 외부 전자 장치로, 상기 외부 전자 장치가 연결할 수 있는 적어도 하나의 Wi-Fi 네트워크를 포함하는 Wi-Fi 스캔 리스트를 요청하고, 상기 외부 전자 장치로부터 상기 Wi-Fi 스캔 리스트를 수신하고, 사용자 입력에 기반하여 상기 Wi-Fi 스캔 리스트로부터 제1 Wi-Fi 네트워크를 선택하고, 상기 선택된 제1 Wi-Fi 네트워크에 대한 Wi-Fi 정보를 포함하는 상기 복구 명령을 상기 외부 전자 장치로 전송하도록 구성될 수 있다.In one embodiment, the at least one processor, when the offline error code indicates a network error, sends a Wi-Fi scan list to the external electronic device, including at least one Wi-Fi network to which the external electronic device can connect. Request a, receive the Wi-Fi scan list from the external electronic device, select a first Wi-Fi network from the Wi-Fi scan list based on user input, and connect to the selected first Wi-Fi network. It may be configured to transmit the recovery command including Wi-Fi information to the external electronic device.

일 실시예에서 상기 적어도 하나의 프로세서는, 상기 메시지를 수신함에 근거하여 상기 에러 코드를 포함하는 에러 보고 메시지를 상기 서버로 전송하도록 구성될 수 있다.In one embodiment, the at least one processor may be configured to transmit an error reporting message including the error code to the server based on receiving the message.

일 실시예에 따른 전자 장치(201)의 동작 방법은, 서버(310)로부터 외부 전자 장치(320)의 장치 정보를 수신하는 동작(605)을 포함할 수 있다. 상기 방법은 상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하는 동작(615)을 포함할 수 있다. 상기 방법은 상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하는 동작(620)을 포함할 수 있다. 상기 방법은 상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하는 동작(630, 635)을 포함할 수 있다. 상기 방법은 상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하는 동작(640)을 포함할 수 있다. 상기 방법은 상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하는 동작(640)을 포함할 수 있다.A method of operating the electronic device 201 according to an embodiment may include an operation 605 of receiving device information of the external electronic device 320 from the server 310. The method may include an operation 615 of displaying a guide screen guiding a communication connection with the external electronic device based on the device information. The method may include an operation 620 of establishing the communication connection with the external electronic device through the communication circuit based on a user input on the guide screen. The method may include operations 630 and 635 of receiving connection information and device log data including an error code related to the offline state of the external electronic device from the external electronic device through the communication connection. The method may include an operation 640 of transmitting a recovery command to the external electronic device through the communication connection based on the error code and the device log data. The method may include an operation 640 of receiving a message from the server indicating that the external electronic device is connected to the server.

일 실시예에서 상기 가이드 화면은, 상기 통신 연결을 가이드하는 문구 또는 상기 통신 연결의 수립을 실행하기 위한 오브젝트 중 적어도 하나를 포함할 수 있다.In one embodiment, the guide screen may include at least one of a phrase guiding the communication connection or an object for establishing the communication connection.

일 실시예에서 상기 방법은, 상기 에러 코드를 기반으로 처리된 상기 오프라인 상태와 관련된 조치 가이드 화면을 표시하는 동작과, 상기 조치 가이드 화면에 대한 상기 사용자 입력에 기반하여 상기 복구 명령을 전송하는 동작을 더 포함할 수 있다.In one embodiment, the method includes displaying an action guide screen related to the offline state processed based on the error code, and transmitting the recovery command based on the user input to the action guide screen. More may be included.

일 실시예에서 상기 방법은, 상기 메시지를 수신함에 근거하여 상기 외부 전자 장치와의 상기 통신 연결을 해제하는 동작을 더 포함할 수 있다.In one embodiment, the method may further include releasing the communication connection with the external electronic device based on receiving the message.

일 실시예에서 상기 방법은, 상기 통신 연결을 통해 상기 외부 전자 장치로 소유권(ownership)을 확인하기 위한 요청 메시지를 전송하는 동작과, 상기 외부 전자 장치로부터 제1 개인 식별 번호(PIN)를 포함하는 응답 메시지를 수신하는 동작과, 사용자로부터 제2 PIN을 수신하는 동작과, 상기 제1 PIN과 상기 제2 PIN이 일치하는 경우 상기 외부 전자 장치의 소유권 확인을 완료하는 동작을 더 포함할 수 있다.In one embodiment, the method includes transmitting a request message to confirm ownership to the external electronic device through the communication connection, and receiving a first personal identification number (PIN) from the external electronic device. The method may further include receiving a response message, receiving a second PIN from the user, and completing ownership verification of the external electronic device when the first PIN and the second PIN match.

일 실시예에서 상기 방법은, 상기 외부 전자 장치를 상기 서버에 등록하는 과정에서 획득한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하는 동작을 더 포함할 수 있다. 일 실시예에서 상기 방법은, 상기 외부 전자 장치의 오너 장치로부터 수신한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하는 동작을 더 포함할 수 있다.In one embodiment, the method may further include confirming ownership of the external electronic device using credential information obtained in the process of registering the external electronic device with the server. In one embodiment, the method may further include confirming ownership of the external electronic device using credential information received from the owner device of the external electronic device.

일 실시예에서 상기 통신 연결을 수립하는 동작은, 상기 장치 정보에 상기 외부 전자 장치가 직접 연결 진단을 지원함을 나타내는 정보가 포함되어 있음을 확인하는 동작과, 상기 가이드 화면 내의 상기 직접 연결 진단을 실행하는 오브젝트를 활성화하는 동작과, 상기 직접 연결 진단을 실행하는 오브젝트를 통해 상기 사용자 입력을 수신함에 근거하여 상기 통신 연결을 수립하는 동작을 포함할 수 있다.In one embodiment, the operation of establishing the communication connection includes confirming that the device information includes information indicating that the external electronic device supports direct connection diagnosis, and executing the direct connection diagnosis in the guide screen. activating an object that performs the direct connection diagnosis, and establishing the communication connection based on receiving the user input through the object that performs the direct connection diagnosis.

일 실시예에서 상기 복구 명령은, 상기 외부 전자 장치에 대한 리부트 명령 또는 상기 외부 전자 장치가 연결할 수 있는 Wi-Fi 네트워크에 대한 Wi-Fi 정보 중 적어도 하나를 포함할 수 있다.In one embodiment, the recovery command may include at least one of a reboot command for the external electronic device or Wi-Fi information about a Wi-Fi network to which the external electronic device can connect.

일 실시예에서 상기 방법은, 상기 에러 코드가 네트워크 에러를 나타내는 경우 상기 외부 전자 장치로, 상기 외부 전자 장치가 연결할 수 있는 적어도 하나의 Wi-Fi 네트워크를 포함하는 Wi-Fi 스캔 리스트를 요청하는 동작과, 상기 외부 전자 장치로부터 상기 Wi-Fi 스캔 리스트를 수신하는 동작과, 사용자 입력에 기반하여 상기 Wi-Fi 스캔 리스트로부터 제1 Wi-Fi 네트워크를 선택하는 동작과, 상기 선택된 제1 Wi-Fi 네트워크에 대한 Wi-Fi 정보를 포함하는 상기 복구 명령을 상기 외부 전자 장치로 전송하는 동작을 더 포함할 수 있다.In one embodiment, the method includes requesting, from the external electronic device, a Wi-Fi scan list including at least one Wi-Fi network to which the external electronic device can connect when the error code indicates a network error. An operation of receiving the Wi-Fi scan list from the external electronic device, an operation of selecting a first Wi-Fi network from the Wi-Fi scan list based on a user input, and the selected first Wi-Fi The method may further include transmitting the recovery command including Wi-Fi information about the network to the external electronic device.

일 실시예에서 상기 방법은, 상기 메시지를 수신함에 근거하여 상기 에러 코드를 포함하는 에러 보고 메시지를 상기 서버로 전송하는 동작을 더 포함할 수 있다.In one embodiment, the method may further include transmitting an error reporting message including the error code to the server based on receiving the message.

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

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

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

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

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

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

Claims (20)

전자 장치(201)에 있어서,
통신 회로(290); 및
상기 통신 회로와 작동적으로 연결된 적어도 하나의 프로세서(220)를 포함하고, 상기 적어도 하나의 프로세서는,
서버(310)로부터 외부 전자 장치(320)의 장치 정보를 수신하고,
상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하고,
상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하고,
상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하고,
상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하고,
상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하도록 구성되는 것을 특징으로 하는 전자 장치.
In the electronic device 201,
communication circuit 290; and
At least one processor (220) operatively connected to the communication circuit, wherein the at least one processor comprises:
Receive device information of the external electronic device 320 from the server 310,
Displaying a guide screen to guide communication connection with the external electronic device based on the device information,
Establishing the communication connection with the external electronic device through the communication circuit based on user input on the guide screen,
Receiving connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection,
Transmitting a recovery command to the external electronic device through the communication connection based on the error code and the device log data,
An electronic device configured to receive a message from the server indicating that the external electronic device is connected to the server.
제 1 항에 있어서, 상기 가이드 화면은,
상기 통신 연결을 가이드하는 문구 또는 상기 통신 연결의 수립을 실행하기 위한 오브젝트 중 적어도 하나를 포함하는 것을 특징으로 하는 전자 장치.
The method of claim 1, wherein the guide screen is:
An electronic device comprising at least one of a phrase guiding the communication connection or an object for establishing the communication connection.
제 1 항 또는 제 2 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 에러 코드를 기반으로 처리된 상기 오프라인 상태와 관련된 조치 가이드 화면을 표시하고,
상기 조치 가이드 화면에 대한 사용자 입력에 기반하여 상기 복구 명령을 전송하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of claim 1 or 2, wherein the at least one processor:
Displaying an action guide screen related to the offline status processed based on the error code,
An electronic device configured to transmit the recovery command based on a user input to the action guide screen.
제 1 항 내지 제 3 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 메시지를 수신함에 근거하여 상기 외부 전자 장치와의 상기 통신 연결을 해제하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 3, wherein the at least one processor:
An electronic device, configured to release the communication connection with the external electronic device based on receiving the message.
제 1 항 내지 제 4 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 통신 연결을 통해 상기 외부 전자 장치로 소유권(ownership)을 확인하기 위한 요청 메시지를 전송하고,
상기 외부 전자 장치로부터 제1 개인 식별 번호(PIN)를 포함하는 응답 메시지를 수신하고,
사용자로부터 제2 PIN을 수신하고,
상기 제1 PIN과 상기 제2 PIN이 일치하는 경우 상기 외부 전자 장치의 소유권 확인을 완료하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 4, wherein the at least one processor:
Transmitting a request message to confirm ownership to the external electronic device through the communication connection,
Receive a response message including a first personal identification number (PIN) from the external electronic device,
Receive a second PIN from the user,
An electronic device configured to complete ownership verification of the external electronic device when the first PIN and the second PIN match.
제 1 항 내지 제 5 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 외부 전자 장치를 상기 서버에 등록하는 과정에서 획득한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하거나, 또는
상기 외부 전자 장치의 오너 장치로부터 수신한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 5, wherein the at least one processor:
Verify ownership of the external electronic device using credential information obtained in the process of registering the external electronic device with the server, or
An electronic device configured to confirm ownership of the external electronic device using credential information received from an owner device of the external electronic device.
제 1 항 내지 제 6 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 장치 정보에 상기 외부 전자 장치가 직접 연결 진단을 지원함을 나타내는 정보가 포함되어 있음을 확인하고,
상기 가이드 화면 내의 상기 직접 연결 진단을 실행하는 오브젝트를 활성화하고,
상기 직접 연결 진단을 실행하는 오브젝트를 통해 상기 사용자 입력을 수신함에 근거하여 상기 통신 연결을 수립하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 6, wherein the at least one processor:
Confirm that the device information includes information indicating that the external electronic device supports direct connection diagnosis,
Activating an object that executes the direct connection diagnosis in the guide screen,
The electronic device, characterized in that it is configured to establish the communication connection based on receiving the user input through an object executing the direct connection diagnosis.
제 1 항 내지 제 7 항 중 어느 한 항에 있어서, 상기 복구 명령은,
상기 외부 전자 장치에 대한 리부트 명령 또는
상기 외부 전자 장치가 연결할 수 있는 Wi-Fi 네트워크에 대한 Wi-Fi 정보 중 적어도 하나를 포함하는 것을 특징으로 하는 전자 장치.
The method according to any one of claims 1 to 7, wherein the recovery order is:
A reboot command for the external electronic device or
An electronic device comprising at least one of Wi-Fi information about a Wi-Fi network to which the external electronic device can connect.
제 1 항 내지 제 8 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 오프라인 에러 코드가 네트워크 에러를 나타내는 경우 상기 외부 전자 장치로, 상기 외부 전자 장치가 연결할 수 있는 적어도 하나의 Wi-Fi 네트워크를 포함하는 Wi-Fi 스캔 리스트를 요청하고,
상기 외부 전자 장치로부터 상기 Wi-Fi 스캔 리스트를 수신하고,
사용자 입력에 기반하여 상기 Wi-Fi 스캔 리스트로부터 제1 Wi-Fi 네트워크를 선택하고,
상기 선택된 제1 Wi-Fi 네트워크에 대한 Wi-Fi 정보를 포함하는 상기 복구 명령을 상기 외부 전자 장치로 전송하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 8, wherein the at least one processor:
If the offline error code indicates a network error, request a Wi-Fi scan list from the external electronic device including at least one Wi-Fi network to which the external electronic device can connect,
Receive the Wi-Fi scan list from the external electronic device,
Selecting a first Wi-Fi network from the Wi-Fi scan list based on user input,
An electronic device configured to transmit the recovery command including Wi-Fi information about the selected first Wi-Fi network to the external electronic device.
제 1 항 내지 제 9 항 중 어느 한 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 메시지를 수신함에 근거하여 상기 에러 코드를 포함하는 에러 보고 메시지를 상기 서버로 전송하도록 구성되는 것을 특징으로 하는 전자 장치.
The method of any one of claims 1 to 9, wherein the at least one processor:
An electronic device configured to transmit an error reporting message including the error code to the server based on receiving the message.
전자 장치의 동작 방법에 있어서,
서버로부터 외부 전자 장치의 장치 정보를 수신하는 동작(605)과,
상기 장치 정보를 기반으로 상기 외부 전자 장치와의 통신 연결을 가이드하는 가이드 화면을 표시하는 동작(615)과,
상기 가이드 화면에 대한 사용자 입력을 기반으로 상기 통신 회로를 통해 상기 외부 전자 장치와 상기 통신 연결을 수립하는 동작(620)과,
상기 통신 연결을 통해 상기 외부 전자 장치로부터 상기 외부 전자 장치의 오프라인 상태와 관련된 에러 코드를 포함하는 연결 정보와 장치 로그 데이터를 수신하는 동작(630, 635)과,
상기 에러 코드와 상기 장치 로그 데이터를 기반으로 상기 통신 연결을 통해 상기 외부 전자 장치로 복구 명령을 전송하는 동작(640)과,
상기 외부 전자 장치가 상기 서버와 연결됨을 알리는 메시지를 상기 서버로부터 수신하는 동작(640)을 포함하는 것을 특징으로 하는 방법.
In a method of operating an electronic device,
An operation 605 of receiving device information of an external electronic device from a server;
An operation 615 of displaying a guide screen guiding a communication connection with the external electronic device based on the device information;
An operation 620 of establishing the communication connection with the external electronic device through the communication circuit based on a user input to the guide screen;
Operations 630 and 635 of receiving connection information and device log data including an error code related to an offline state of the external electronic device from the external electronic device through the communication connection;
An operation 640 of transmitting a recovery command to the external electronic device through the communication connection based on the error code and the device log data;
A method comprising an operation (640) of receiving a message from the server indicating that the external electronic device is connected to the server.
제 11 항에 있어서, 상기 가이드 화면은,
상기 통신 연결을 가이드하는 문구 또는 상기 통신 연결의 수립을 실행하기 위한 오브젝트 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.
The method of claim 11, wherein the guide screen is:
A method comprising at least one of a phrase guiding the communication connection or an object for establishing the communication connection.
제 11 항 또는 제 12 항에 있어서,
상기 에러 코드를 기반으로 처리된 상기 오프라인 상태와 관련된 조치 가이드 화면을 표시하는 동작과,
상기 조치 가이드 화면에 대한 상기 사용자 입력에 기반하여 상기 복구 명령을 전송하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method of claim 11 or 12,
An operation of displaying an action guide screen related to the offline state processed based on the error code;
The method further comprising transmitting the recovery command based on the user input to the action guide screen.
제 11 항 내지 제 13 항 중 어느 한 항에 있어서,
상기 메시지를 수신함에 근거하여 상기 외부 전자 장치와의 상기 통신 연결을 해제하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 13,
The method further comprising releasing the communication connection with the external electronic device based on receiving the message.
제 11 항 내지 제 14 항 중 어느 한 항에 있어서,
상기 통신 연결을 통해 상기 외부 전자 장치로 소유권(ownership)을 확인하기 위한 요청 메시지를 전송하는 동작과,
상기 외부 전자 장치로부터 제1 개인 식별 번호(PIN)를 포함하는 응답 메시지를 수신하는 동작과,
사용자로부터 제2 PIN을 수신하는 동작과,
상기 제1 PIN과 상기 제2 PIN이 일치하는 경우 상기 외부 전자 장치의 소유권 확인을 완료하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 14,
An operation of transmitting a request message to confirm ownership to the external electronic device through the communication connection;
Receiving a response message including a first personal identification number (PIN) from the external electronic device;
An operation of receiving a second PIN from a user;
The method further includes completing ownership verification of the external electronic device when the first PIN and the second PIN match.
제 11 항 내지 제 15 항 중 어느 한 항에 있어서,
상기 외부 전자 장치를 상기 서버에 등록하는 과정에서 획득한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하는 동작, 또는
상기 외부 전자 장치의 오너 장치로부터 수신한 크리덴셜 정보를 이용하여 상기 외부 전자 장치의 소유권을 확인하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 15,
An operation of confirming ownership of the external electronic device using credential information obtained in the process of registering the external electronic device with the server, or
The method further includes confirming ownership of the external electronic device using credential information received from the owner device of the external electronic device.
제 11 항 내지 제 16 항 중 어느 한 항에 있어서, 상기 통신 연결을 수립하는 동작은,
상기 장치 정보에 상기 외부 전자 장치가 직접 연결 진단을 지원함을 나타내는 정보가 포함되어 있음을 확인하는 동작과,
상기 가이드 화면 내의 상기 직접 연결 진단을 실행하는 오브젝트를 활성화하는 동작과,
상기 직접 연결 진단을 실행하는 오브젝트를 통해 상기 사용자 입력을 수신함에 근거하여 상기 통신 연결을 수립하는 동작을 포함하는 것을 특징으로 하는 방법.
The method of any one of claims 11 to 16, wherein the operation of establishing the communication connection comprises:
Confirming that the device information includes information indicating that the external electronic device supports direct connection diagnosis;
An operation of activating an object that executes the direct connection diagnosis within the guide screen;
Establishing the communication connection based on receiving the user input through an object executing the direct connection diagnosis.
제 11 항 내지 제 17 항 중 어느 한 항에 있어서, 상기 복구 명령은,
상기 외부 전자 장치에 대한 리부트 명령 또는
상기 외부 전자 장치가 연결할 수 있는 Wi-Fi 네트워크에 대한 Wi-Fi 정보 중 적어도 하나를 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 17, wherein the recovery order is:
A reboot command for the external electronic device or
A method comprising at least one of Wi-Fi information about a Wi-Fi network to which the external electronic device can connect.
제 11 항 내지 제 18 항 중 어느 한 항에 있어서,
상기 에러 코드가 네트워크 에러를 나타내는 경우 상기 외부 전자 장치로, 상기 외부 전자 장치가 연결할 수 있는 적어도 하나의 Wi-Fi 네트워크를 포함하는 Wi-Fi 스캔 리스트를 요청하는 동작과,
상기 외부 전자 장치로부터 상기 Wi-Fi 스캔 리스트를 수신하는 동작과,
사용자 입력에 기반하여 상기 Wi-Fi 스캔 리스트로부터 제1 Wi-Fi 네트워크를 선택하는 동작과,
상기 선택된 제1 Wi-Fi 네트워크에 대한 Wi-Fi 정보를 포함하는 상기 복구 명령을 상기 외부 전자 장치로 전송하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 18,
If the error code indicates a network error, requesting, from the external electronic device, a Wi-Fi scan list including at least one Wi-Fi network to which the external electronic device can connect;
Receiving the Wi-Fi scan list from the external electronic device;
Selecting a first Wi-Fi network from the Wi-Fi scan list based on user input;
The method further comprising transmitting the recovery command including Wi-Fi information about the selected first Wi-Fi network to the external electronic device.
제 11 항 내지 제 19 항 중 어느 한 항에 있어서,
상기 메시지를 수신함에 근거하여 상기 에러 코드를 포함하는 에러 보고 메시지를 상기 서버로 전송하는 동작을 더 포함하는 것을 특징으로 하는 방법.
The method according to any one of claims 11 to 19,
The method further comprising transmitting an error reporting message including the error code to the server based on receiving the message.
KR1020220089118A 2022-05-13 2022-07-19 Electronic device for managing controlled device and method of operating the same KR20230159207A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/KR2023/001990 WO2023219234A1 (en) 2022-05-13 2023-02-10 Electronic device for managing controlled device and operation method therefor
US18/180,279 US20230370328A1 (en) 2022-05-13 2023-03-08 Electronic device for managing controlled device and method of operating the same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220058889 2022-05-13
KR20220058889 2022-05-13

Publications (1)

Publication Number Publication Date
KR20230159207A true KR20230159207A (en) 2023-11-21

Family

ID=88981915

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220089118A KR20230159207A (en) 2022-05-13 2022-07-19 Electronic device for managing controlled device and method of operating the same

Country Status (1)

Country Link
KR (1) KR20230159207A (en)

Similar Documents

Publication Publication Date Title
KR102473262B1 (en) Electronic device for controlling establishing or releasing communication connection and method for controlling thereof
US10516774B2 (en) Method for configuring a wireless device
KR102366312B1 (en) Electronic device for performing reconnection of near field communication and method for controlling thereof
KR20190035076A (en) Method for registration of internet of things deivce and the appratus thereof
KR102373548B1 (en) Electronic device and method for connecting local communication
KR20220102469A (en) Iot device and method for onboarding iot device to server
KR102613405B1 (en) Method for sharing for Bluetooth communication Information and Electronic Device
EP4319255A1 (en) Electronic device for performing network management operation and operation method thereof
EP4274309A1 (en) Electronic device for performing network management operation, and operating method therefor
KR20230159207A (en) Electronic device for managing controlled device and method of operating the same
US20230370328A1 (en) Electronic device for managing controlled device and method of operating the same
CN116868599A (en) Electronic device for transmitting/receiving network configuration information and method of operating the same
US20240056787A1 (en) Electronic device for managing controlled device and method of operating same
US20230362259A1 (en) Electronic device for controlling internet of things device and method of operating the same
KR20240021536A (en) Electronic device for managing controlled device and method of operating the same
KR20240047869A (en) Electronic device and method for controlling cloud connection of external electronic device in electronic device
KR20240029477A (en) Electronic device for managing iot devices and method of operating the same
US20230127435A1 (en) Electronic device for determining application controlling external electronic device and method for operating the same
KR20230157023A (en) Electronic device for controlling internet of things device and method of operating the same
US20240129300A1 (en) Remote authorization method and electronic device for performing same method
WO2023219234A1 (en) Electronic device for managing controlled device and operation method therefor
US20220361094A1 (en) Electronic device, system and operation method of thereof
US20230164033A1 (en) Edge computing system and method
EP4277359A1 (en) Electronic device for providing information of access point in wireless communication system and method thereof
KR20220152683A (en) Electronic device, system and operation method of thereof