KR20160000437A - Apparatus and method for pairing between an electronic device with a lighting device - Google Patents

Apparatus and method for pairing between an electronic device with a lighting device Download PDF

Info

Publication number
KR20160000437A
KR20160000437A KR1020150089064A KR20150089064A KR20160000437A KR 20160000437 A KR20160000437 A KR 20160000437A KR 1020150089064 A KR1020150089064 A KR 1020150089064A KR 20150089064 A KR20150089064 A KR 20150089064A KR 20160000437 A KR20160000437 A KR 20160000437A
Authority
KR
South Korea
Prior art keywords
pairing
illumination
electronic device
identification data
lighting device
Prior art date
Application number
KR1020150089064A
Other languages
Korean (ko)
Other versions
KR102325323B1 (en
Inventor
최대규
박용석
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to US14/749,135 priority Critical patent/US9900091B2/en
Publication of KR20160000437A publication Critical patent/KR20160000437A/en
Application granted granted Critical
Publication of KR102325323B1 publication Critical patent/KR102325323B1/en

Links

Images

Classifications

    • H05B37/0245
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21SNON-PORTABLE LIGHTING DEVICES; SYSTEMS THEREOF; VEHICLE LIGHTING DEVICES SPECIALLY ADAPTED FOR VEHICLE EXTERIORS
    • F21S10/00Lighting devices or systems producing a varying lighting effect
    • F21S10/02Lighting devices or systems producing a varying lighting effect changing colors
    • H05B37/0227
    • H05B37/0272

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)

Abstract

The present disclosure relates to technologies for a sensor network, machine-to-machine (M2M) communication, machine type communication (MTC), and internet of things (IoT). The present disclosure can be applied to intelligent services (smart home, smart building, smart city, smart car or connected car, health care, digital education, retail business, security and safety services, etc.) based on the above technologies. The present invention relates to pairing between an electronic device and a lighting device. A method of an electronic device for pairing with a lighting device comprises the steps of: photographing a lighting device to be paired; acquiring identification data of the lighting device from the photographed image; and pairing with the lighting device by transmitting the identification data to the lighting device. A method of a lighting device for pairing with an electronic device comprises the steps of: outputting light based on identification data of a lighting device; receiving identification data from an electronic device; determining whether to pair with the electronic device by comparing the identification data of the lighting device with the received identification data; and pairing with the electronic device when the pairing with the electronic device is determined.

Description

전자 장치와 조명 장치의 페어링 방법 및 장치{APPARATUS AND METHOD FOR PAIRING BETWEEN AN ELECTRONIC DEVICE WITH A LIGHTING DEVICE}TECHNICAL FIELD [0001] The present invention relates to a pairing method of an electronic device and a lighting device,

본 발명은 전자 장치와 조명 장치의 페어링에 관한 것이다.The present invention relates to a pairing of an electronic device and a lighting device.

인터넷은 인간이 정보를 생성하고 소비하는 인간 중심의 연결 망에서, 사물 등 분산된 구성 요소들 간에 정보를 주고 받아 처리하는 IoT(Internet of Things, 사물인터넷) 망으로 진화하고 있다. 클라우드 서버 등과의 연결을 통한 빅데이터(Big data) 처리 기술 등이 IoT 기술에 결합된 IoE (Internet of Everything) 기술도 대두되고 있다. IoT를 구현하기 위해서, 센싱 기술, 유무선 통신 및 네트워크 인프라, 서비스 인터페이스 기술, 및 보안 기술과 같은 기술 요소 들이 요구되어, 최근에는 사물간의 연결을 위한 센서 네트워크(sensor network), 사물 통신(Machine to Machine, M2M), MTC(Machine Type Communication)등의 기술이 연구되고 있다.The Internet is evolving into an Internet of Things (IoT) network that exchanges information between distributed components such as objects in a human-centered connection network where humans generate and consume information. IoE (Internet of Everything) technology, which combines IoT technology with big data processing technology through connection with cloud servers, is also emerging. In order to implement IoT, technology elements such as sensing technology, wired / wireless communication, network infrastructure, service interface technology and security technology are required. In recent years, sensor network, machine to machine , M2M), and MTC (Machine Type Communication).

IoT 환경에서는 연결된 사물들에서 생성된 데이터를 수집, 분석하여 인간의 삶에 새로운 가치를 창출하는 지능형 IT(Internet Technology) 서비스가 제공될 수 있다. IoT는 기존의 IT(information technology)기술과 다양한 산업 간의 융합 및 복합을 통하여 스마트홈, 스마트 빌딩, 스마트 시티, 스마트 카 혹은 커넥티드 카, 스마트 그리드, 헬스 케어, 스마트 가전, 첨단의료서비스 등의 분야에 응용될 수 있다.In the IoT environment, an intelligent IT (Internet Technology) service can be provided that collects and analyzes data generated from connected objects to create new value in human life. IoT is a field of smart home, smart building, smart city, smart car or connected car, smart grid, health care, smart home appliance, and advanced medical service through fusion of existing information technology . ≪ / RTI >

최근 통신 기술이 발전함에 따라, 다양한 통신 장치와 사물 인터넷(internet of thing) 및/혹은 만물 인터넷(internet of everything)을 연계하는 통신 방식에 대한 관심이 증가하고 있다. 일 예로, 사용자의 스마트 폰과 블루투스 기술이 적용된 조명 장치가 페어링을 수행하여 스마트 폰에서 조명 장치를 제어하는 기술이 제공되고 있다.As the communication technology has developed in recent years, there is an increasing interest in a communication method that links various communication devices with the internet of things and / or the internet of everything. For example, a technique is provided in which a user's smartphone and a lighting device to which Bluetooth technology is applied perform pairing to control the lighting device in a smartphone.

도 1a 및 도 1b는 종래 기술에 따른 스마트 폰과 조명 장치 사이의 페어링 방안을 도시하고 있다. 도 1a는 제 1 사용자의 가정 내에 3개의 조명 장치(1, 2 및 3)가 존재하고, 제 1 사용자의 가정과 인접한 제 2 사용자의 가정 내에 3개의 조명 장치(A,B 및 C)가 존재하는 상황을 나타낸다. 도 1a에 도시된 바와 같은 상황에서, 제 1 사용자가 스마트폰(100)을 통해 제 1 사용자의 가정 내에 위치한 특정 조명을 제어하고자 하는 경우, 종래의 기술에 따른 스마트폰(100)은 특정 조명과의 페어링을 위해, 주변의 조명 장치들로부터의 신호 수신 세기를 측정한 후, 측정된 수신 세기에 대한 정보를 사용자에게 제공하여, 사용자로 하여금 페어링할 조명을 선택하도록 한다. 예를 들어, 도 1a에 도시된 바와 같은 상황에서 스마트폰(100)은 제 1 사용자의 가정 내에 위치한 3개의 조명 장치 및 제 2 사용자의 가정 내에 위치한 3개의 조명 장치들로부터의 신호 수신 세기를 측정한 후, 도 1b에 도시된 바와 같이, 다수 개의 조명 장치들 각각에 대한 신호 수신 세기를 화면에 표시하여 사용자에게 페어링 하고자 하는 조명 장치를 선택할 것을 요청한다. 그러나, 스마트 폰에서 측정되는 각 조명 장치의 수신 신호 세기는 시간 및 주변 상황(예: 장애물 변경) 등에 의해 변경되므로, 조명 장치의 신호 수신 세기만으로 사용자가 원하는 특정 조명 장치를 정확히 선택하는 것은 어렵다. 더욱이, 종래의 스마트 폰과 조명 장치는 종래에 알려진 페어링 모델 중에서 "Just Work" 모델을 이용하므로, 중간자 공격(Man-In-The-Middle attack)에 노출될 수 있는 단점이 있다.Figures 1a and 1b show a pairing scheme between a smartphone and a lighting device according to the prior art. 1a shows that there are three illuminators 1, 2 and 3 in the home of the first user and three illuminators A, B and C are present in the home of the second user adjacent to the home of the first user Indicates the situation. In the situation shown in FIG. 1A, when a first user wishes to control a specific lighting located in the home of the first user via the smartphone 100, the smartphone 100 according to the prior art has a specific lighting For example, to measure the signal reception intensity from the surrounding illumination devices, and then to provide information about the measured reception intensity to the user, thereby allowing the user to select the illumination to be paired. For example, in the situation as shown in FIG. 1A, the smartphone 100 measures the intensity of signal reception from three illuminators located in the home of the first user and three illuminators located in the home of the second user After that, as shown in FIG. 1B, a signal reception intensity for each of the plurality of illumination devices is displayed on the screen, and the user is requested to select an illumination device to be paired. However, since the received signal strength of each lighting device measured by the smartphone is changed by time and surrounding conditions (for example, obstacle change), it is difficult for the user to accurately select a specific lighting device desired only by the signal receiving intensity of the lighting device. Moreover, conventional smart phones and lighting devices have a disadvantage in that they can be exposed to a man-in-the-middle attack because they use a "Just Work" model among conventionally known pairing models.

따라서, 본 발명의 실시 예는 전자 장치와 조명 장치 사이의 페어링 시, 보안성을 향상시키기 위한 방법 및 장치를 제공함에 있다.Accordingly, an embodiment of the present invention is to provide a method and apparatus for improving security when pairing an electronic device and a lighting device.

본 발명의 다른 실시 예는 전자 장치에서 페어링할 조명 장치를 선택하기 위한 방법 및 장치를 제공함에 있다.Another embodiment of the present invention is to provide a method and apparatus for selecting a lighting device to be paired in an electronic device.

본 발명의 또 다른 실시 예는 전자 장치에서 페어링하고자 하는 조명 장치를 촬영하여 해당 조명 장치에 대한 식별 데이터를 획득하고, 획득한 식별 데이터를 주변 조명 장치들로 전송하여 페어링하고자 하는 조명 장치를 알리는 방법 및 장치를 제공함에 있다.Another embodiment of the present invention is a method of photographing an illumination device to be paired in an electronic device, obtaining identification data for the illumination device, transmitting the obtained identification data to the peripheral illumination devices, And an apparatus.

본 발명의 다른 실시 예는 전자 장치에서 조명 장치의 색상 및 주기를 기반으로 조명 장치를 선택하여 페어링 절차를 수행하기 위한 방법 및 장치를 제공함에 있다.Another embodiment of the present invention is to provide a method and apparatus for selecting a lighting device based on the color and period of a lighting device in an electronic device to perform a pairing procedure.

본 발명의 또 다른 실시 예는 전자 장치에서 조명 장치의 촬영을 통해 획득된 데이터를 기반으로 임시 키(TK: Temporary Key)를 생성하고, 생성된 임시 키를 이용하여 페어링 시에 암호화를 수행하는 방법 및 장치를 제공함에 있다.According to another embodiment of the present invention, there is provided a method of generating a temporary key (TK) based on data obtained through photographing of a lighting apparatus in an electronic device, and performing encryption at the time of pairing using the generated temporary key And an apparatus.

본 발명의 또 다른 실시 예는 조명 장치에서 조명 색상 및/혹은 조명 주기를 제어하고, 전자 장치로부터 수신된 조명 색상 및/혹은 조명 주기를 기반으로 해당 전자 장치와의 페어링 여부를 결정하는 방법 및 장치를 제공함에 있다.Another embodiment of the present invention is a method and apparatus for controlling illumination color and / or illumination period in a lighting device and determining whether to pair with the electronic device based on illumination color and / or illumination period received from the electronic device .

본 발명의 또 다른 실시 예는 조명 장치에서 조명 색상 및/혹은 조명 주기 기반으로 임시 키를 생성하고, 생성된 임시 키를 이용하여 페어링 시에 암호화를 수행하는 방법 및 장치를 제공함에 있다.Another embodiment of the present invention is to provide a method and apparatus for generating a temporary key based on illumination color and / or illumination period in a lighting apparatus and performing encryption at the time of pairing using the generated temporary key.

본 발명의 실시 예에 따르면, 조명 장치와 페어링을 위한 전자 장치의 방법은, 페어링할 조명 장치를 촬영하는 과정과, 촬영된 이미지로부터 상기 조명 장치에 대한 식별 데이터를 획득하는 과정과, 상기 식별 데이터를 상기 조명 장치로 전송하여 상기 조명 장치와 페어링을 수행하는 과정을 포함할 수 있다. According to an embodiment of the present invention, a method of an electronic device for pairing with a lighting device comprises the steps of photographing a lighting device to be paired, acquiring identification data for the lighting device from the photographed image, To the lighting device and performing a pairing with the lighting device.

본 발명의 실시 예에 따르면, 전자 장치와 페어링을 위한 조명 장치의 방법은, 조명 장치의 식별 데이터를 기반으로 조명을 출력하는 과정과, 전자 장치로부터 식별 데이터를 수신하는 과정과, 상기 조명 장치의 식별 데이터와 상기 수신된 식별 데이터를 비교하여 상기 전자 장치와의 페어링 여부를 결정하는 과정과, 상기 전자 장치와의 페어링이 결정될 경우, 상기 전자 장치와 페어링을 수행하는 과정을 포함할 수 있다. According to an embodiment of the present invention, a method of a lighting device for pairing with an electronic device includes the steps of outputting illumination based on identification data of the lighting device, receiving identification data from the electronic device, Comparing the identification data with the received identification data to determine whether to pair with the electronic device, and performing a pairing with the electronic device when the pairing with the electronic device is determined.

본 발명의 실시 예에 따르면, 조명 장치와 페어링을 위한 전자 장치는, 조명 장치와 페어링을 위한 신호를 송수신하는 통신 모듈; 조명 장치를 촬영하는 카메라 모듈; 및 상기 카메라 모듈에 의해 촬영된 이미지로부터 상기 조명 장치에 대한 식별 데이터를 획득하고, 상기 식별 데이터를 상기 조명 장치로 전송하여 상기 조명 장치와 페어링을 수행하는 프로세서를 포함할 수 있다.According to an embodiment of the present invention, an electronic device for pairing with a lighting device includes: a communication module for transmitting and receiving a signal for pairing with a lighting device; A camera module for photographing a lighting device; And a processor for obtaining identification data for the illumination device from the image captured by the camera module and for transmitting the identification data to the illumination device to perform the pairing with the illumination device.

본 발명의 실시 예에 따르면, 전자 장치와 페어링을 위한 조명 장치는, 전자 장치와 페어링을 위한 신호를 송수신하는 통신 모듈; 조명 장치의 식별 데이터를 기반으로 조명을 출력하는 조명 출력 모듈; 및 상기 통신 모듈에 의해 상기 전자 장치로부터 수신되는 식별 데이터와 상기 조명 장치의 식별 데이터를 비교하여 상기 전자 장치와의 페어링 여부를 결정하고, 상기 전자 장치와의 페어링이 결정될 경우, 상기 전자 장치와 페어링을 수행하는 프로세서를 포함할 수 있다.According to an embodiment of the present invention, a lighting device for pairing with an electronic device includes: a communication module for transmitting and receiving signals for pairing with an electronic device; A lighting output module for outputting illumination based on identification data of the lighting device; And determining whether to pair with the electronic device by comparing the identification data received from the electronic device with the identification data of the lighting device by the communication module, and when the pairing with the electronic device is determined, And a processor that performs the processing.

본 발명은 전자 장치에서 페어링하고자 하는 조명 장치를 촬영하여 해당 조명 장치에 대한 식별 데이터를 획득하고, 획득한 식별 데이터를 주변 조명 장치들로 전송하여 페어링하고자 하는 조명 장치를 알림으로써, 사용자가 원하는 기기를 정확하게 선정하여 페어링을 수행할 수 있는 효과가 있다. 또한, 본 발명은 전자 장치와 조명 장치에서 조명 장치의 촬영을 통해 획득 가능한 데이터를 기반으로 임시 키(TK: Temporary Key)를 생성하고, 생성된 임시 키를 이용하여 페어링 시에 암호화를 수행함으로써, 중간자 공격(Man-In-The-Middle attack)을 회피하고, 보안성을 향상시킬 수 있는 효과가 있다.The present invention relates to a method and apparatus for photographing a lighting apparatus to be paired in an electronic apparatus, acquiring identification data for the lighting apparatus, transmitting the obtained identification data to peripheral lighting apparatuses, It is possible to perform the pairing accurately. In addition, the present invention generates a temporary key (TK) based on data obtainable through photographing of a lighting apparatus in an electronic device and a lighting apparatus, performs encryption at the time of pairing using the generated temporary key, Thereby avoiding a man-in-the-middle attack and improving security.

도 1a 및 도 1b는 종래 기술에 따른 스마트 폰과 조명 장치 사이의 페어링 방안을 도시하는 도면,
도 2는 본 발명의 실시 예에 따른 전자 장치와 조명 장치의 페어링 방안을 개략적으로 도시하는 도면,
도 3a는 본 발명의 실시 예에 따른 전자 장치의 페어링 절차를 도시하는 도면,
도 3b는 본 발명의 실시 예에 따른 조명 장치의 페어링 절차를 도시하는 도면,
도 4는 본 발명의 실시 예에 따른 페어링 요청 메시지 및 페어링 응답 메시지의 구성을 도시하는 도면,
도 5는 본 발명의 실시 예에 따라 조명 장치의 색상 데이터를 기반으로 임시 키를 생성하는 예를 도시하는 도면,
도 6은 본 발명의 실시 예에 따른 전자 장치에서 페어링을 수행하는 상세한 절차를 도시하는 도면,
도 7은 본 발명의 실시 예에 따른 조명 장치에서 페어링을 수행하는 상세한 절차를 도시하는 도면,
도 8은 본 발명의 실시 예에 따른 전자 장치의 블럭 구성을 도시하는 도면,
도 9는 본 발명의 실시 예에 따른 전자 장치에 포함된 페어링 모듈의 구성을 도시하는 도면, 및
도 10은 본 발명의 실시 예에 따른 조명 장치의 블럭 구성을 도시하는 도면.
FIGS. 1A and 1B are diagrams illustrating a pairing scheme between a smartphone and a lighting device according to the prior art;
Figure 2 schematically illustrates a pairing scheme of an electronic device and a lighting device according to an embodiment of the present invention;
3A is a diagram showing a pairing procedure of an electronic device according to an embodiment of the present invention;
FIG. 3B is a diagram showing a pairing procedure of a lighting apparatus according to an embodiment of the present invention;
4 is a diagram illustrating a configuration of a pairing request message and a pairing response message according to an embodiment of the present invention;
5 is a diagram illustrating an example of generating a temporary key based on color data of a lighting device in accordance with an embodiment of the present invention;
6 is a diagram illustrating a detailed procedure for performing pairing in an electronic device according to an embodiment of the present invention;
7 is a diagram illustrating a detailed procedure for performing pairing in a lighting device according to an embodiment of the present invention;
8 is a block diagram of an electronic device according to an embodiment of the present invention;
9 is a diagram showing a configuration of a pairing module included in an electronic device according to an embodiment of the present invention, and Fig.
10 is a block diagram of a lighting device according to an embodiment of the present invention.

이하에서는 본 발명의 실시 예들을 첨부된 예시적인 도면을 참조하여 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 서로 다른 도면상에 표시되더라도 동일한 구성요소들에 대해서는 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 그리고, 본 발명을 설명함에 있어서, 관련된 공지기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단된 경우 그 상세한 설명은 생략할 것이다. 또한, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.Best Mode for Carrying Out the Invention Hereinafter, embodiments of the present invention will be described with reference to the accompanying exemplary drawings. It should be noted that, in adding reference numerals to the constituent elements of the drawings, the same constituent elements are denoted by the same reference numerals whenever possible, even if they are shown on different drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. In addition, the terms described below are defined in consideration of the functions of the present invention, which may vary depending on the intention of the user, the operator, or the custom. Therefore, the definition should be based on the contents throughout this specification.

본 발명의 다양한 실시예에서 사용될 수 있는“포함한다” 또는 “포함할 수 있다” 등의 표현은 개시(disclosure)된 해당 기능, 동작 또는 구성요소 등의 존재를 가리키며, 추가적인 하나 이상의 기능, 동작 또는 구성요소 등을 제한하지 않는다. 또한, 본 발명의 다양한 실시예에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. The use of "including" or "including" in various embodiments of the present invention can be used to refer to the presence of a corresponding function, operation or component, etc., which is disclosed, Components and the like. Also, in various embodiments of the invention, the terms "comprise" or "having" are intended to specify the presence of stated features, integers, steps, operations, components, parts or combinations thereof, But do not preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

본 발명의 다양한 실시예에서 “또는”, "혹은" 등의 표현은 함께 나열된 단어들의 어떠한, 그리고 모든 조합을 포함한다. 예를 들어, “A 또는 B”는, A를 포함할 수도, B를 포함할 수도, 또는 A 와 B 모두를 포함할 수도 있다.In various embodiments of the present invention, the expressions " or "or" include any and all combinations of words listed together. For example, " A or B " may comprise A, comprise B, or both A and B.

본 발명의 다양한 실시예에서 사용된 “제 1,”“제2,”“첫째,”또는“둘째,”등의 표현들은 다양한 실시예들의 다양한 구성요소들을 수식할 수 있지만, 해당 구성요소들을 한정하지 않는다. 예를 들어, 상기 표현들은 해당 구성요소들의 순서 및/또는 중요도 등을 한정하지 않는다. 상기 표현들은 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 수 있다. 예를 들어, 제 1 사용자 기기와 제 2 사용자 기기는 모두 사용자 기기이며, 서로 다른 사용자 기기를 나타낸다. 예를 들어, 본 발명의 다양한 실시예의 권리 범위를 벗어나지 않으면서 제 1 구성요소는 제 2 구성요소로 명명될 수 있고, 유사하게 제 2 구성요소도 제 1 구성요소로 명명될 수 있다.&Quot; first, " " second, " " first, " or " second, " etc. used in various embodiments of the present invention may modify various elements of various embodiments, I never do that. For example, the representations do not limit the order and / or importance of the components. The representations may be used to distinguish one component from another. For example, both the first user equipment and the second user equipment are user equipment and represent different user equipment. For example, without departing from the scope of the various embodiments of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 상기 어떤 구성요소와 상기 다른 구성요소 사이에 새로운 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소와 상기 다른 구성요소 사이에 새로운 다른 구성요소가 존재하지 않는 것으로 이해될 수 있어야 할 것이다. It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it is to be understood that the element may be directly connected or connected to the other element, It should be understood that there may be other new components between the different components. On the other hand, when it is mentioned that an element is "directly connected" or "directly connected" to another element, it is understood that there is no other element between the element and the other element It should be possible.

본 발명의 다양한 실시예에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 다양한 실시예를 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. The terminology used in the various embodiments of the present invention is used only to describe a specific embodiment and is not intended to limit the various embodiments of the present invention. The singular expressions include plural expressions unless the context clearly dictates otherwise.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명의 다양한 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 발명의 다양한 실시예에서 명백하게 정의되지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present invention belong. Terms such as those defined in commonly used dictionaries should be interpreted to have the meanings consistent with the contextual meanings of the related art and, unless expressly defined in the various embodiments of the present invention, It is not interpreted as meaning.

본 발명의 다양한 실시예에 따른 전자 장치는, 통신 기능이 포함된 장치일 수 있다. 예를 들면, 전자 장치는 스마트 폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 화상전화기, 전자북 리더기(e-book reader), 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 넷북 컴퓨터(netbook computer), PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 모바일 의료기기, 카메라(camera), 또는 웨어러블 장치(wearable device)(예: 전자 안경과 같은 head-mounted-device(HMD), 전자 의복, 전자 팔찌, 전자 목걸이, 전자 앱세서리(appcessory), 전자 문신, 또는 스마트 와치(smart watch))중 적어도 하나를 포함할 수 있다. An electronic device according to various embodiments of the present invention may be a device including a communication function. For example, the electronic device can be a smartphone, a tablet personal computer, a mobile phone, a videophone, an e-book reader, a desktop personal computer, a laptop Such as a laptop personal computer (PC), a netbook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device Such as a head-mounted device (HMD) such as electronic glasses, an electronic garment, an electronic bracelet, an electronic necklace, an electronic app apparel, an electronic tattoo, or a smart watch.

어떤 실시예들에 따르면, 전자 장치는 통신 기능을 갖춘 스마트 가전 제품(smart home appliance)일 수 있다. 스마트 가전 제품은, 예를 들자면, 전자 장치는 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스(set-top box), TV 박스(예를 들면, 삼성 HomeSync™, 애플TV™, 또는 구글 TV™), 게임 콘솔(game consoles), 전자 사전, 전자 키, 캠코더(camcorder), 또는 전자 액자 중 적어도 하나를 포함할 수 있다.According to some embodiments, the electronic device may be a smart home appliance with communication capabilities. [0003] Smart household appliances, such as electronic devices, are widely used in the fields of television, digital video disk (DVD) player, audio, refrigerator, air conditioner, vacuum cleaner, oven, microwave oven, washing machine, air cleaner, set- And may include at least one of a box (e.g., Samsung HomeSync ™, Apple TV ™, or Google TV ™), game consoles, an electronic dictionary, an electronic key, a camcorder,

어떤 실시예들에 따르면, 전자 장치는 각종 의료기기(예: MRA(magnetic resonance angiography), MRI(magnetic resonance imaging), CT(computed tomography), 촬영기, 초음파기 등), 네비게이션(navigation) 장치, GPS 수신기(global positioning system receiver), EDR(event data recorder), FDR(flight data recorder), 자동차 인포테인먼트(infotainment) 장치, 선박용 전자 장비(예: 선박용 항법 장치 및 자이로 콤파스 등), 항공 전자기기(avionics), 보안 기기, 차량용 헤드 유닛, 산업용 또는 가정용 로봇, 금융 기관의 ATM(automatic teller's machine) 또는 상점의 POS(point of sales) 중 적어도 하나를 포함할 수 있다.According to some embodiments, the electronic device may be a variety of medical devices (e.g., magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), computed tomography (CT) (global positioning system receiver), EDR (event data recorder), flight data recorder (FDR), automotive infotainment device, marine electronic equipment (eg marine navigation device and gyro compass), avionics, A security device, a head unit for a vehicle, an industrial or home robot, an ATM (automatic teller's machine) of a financial institution, or a POS (point of sale) of a shop.

어떤 실시예들에 따르면, 전자 장치는 통신 기능을 포함한 가구(furniture) 또는 건물/구조물의 일부, 전자 보드(electronic board), 전자 사인 입력장치(electronic signature receiving device), 프로젝터(projector), 또는 각종 계측기기(예: 수도, 전기, 가스, 또는 전파 계측 기기 등) 중 적어도 하나를 포함할 수 있다. 본 발명의 다양한 실시예에 따른 전자 장치는 전술한 다양한 장치들 중 하나 또는 그 이상의 조합일 수 있다. 또한, 본 발명의 다양한 실시예에 따른 전자 장치는 플렉서블 장치일 수 있다. 또한, 본 발명의 다양한 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않음은 당업자에게 자명하다.According to some embodiments, the electronic device may be a piece of furniture or a structure / structure including a communication function, an electronic board, an electronic signature receiving device, a projector, (E.g., water, electricity, gas, or radio wave measuring instruments, etc.). An electronic device according to various embodiments of the present invention may be one or more of the various devices described above. Further, the electronic device according to various embodiments of the present invention may be a flexible device. It should also be apparent to those skilled in the art that the electronic device according to various embodiments of the present invention is not limited to the above-described devices.

이하, 첨부된 도면을 참조하여 다양한 실시예에 따른 전자 장치에 대해서 살펴본다. 다양한 실시예에서 이용되는 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다.Hereinafter, an electronic device according to various embodiments will be described with reference to the accompanying drawings. The term user as used in various embodiments may refer to a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).

또한, 이하 본 명세서에서 조명 장치는 조명 출력 기능을 구비하고, 전자 장치와 통신 가능한 기능을 구비한 장치를 의미한다.Hereinafter, the illumination device in the present specification means a device having a function of outputting a light and having a function capable of communicating with an electronic device.

도 2는 본 발명의 실시 예에 따른 전자 장치와 조명 장치의 페어링 방안을 개략적으로 도시하고 있다. 본 발명의 실시 예에서는, 3개의 전자 장치들, 즉 제 1 조명 장치(210-1), 제 2 조명 장치(210-2), 제 3 조명 장치(210-3)가 존재하는 상황에서 전자 장치(200)가 제 2 조명 장치(210-2)와 페어링하고자 하는 경우를 가정하여 설명한다. 그러나, 본 발명의 실시 예는 적어도 하나의 조명 장치가 존재하는 상황에서 동일하게 적용될 수 있다.2 schematically shows a pairing scheme of an electronic device and a lighting device according to an embodiment of the present invention. In the embodiment of the present invention, in a situation where there are three electronic devices, i.e., the first illuminating device 210-1, the second illuminating device 210-2, and the third illuminating device 210-3, It is assumed that the first illuminating device 200 wants to pair with the second illuminating device 210-2. However, the embodiment of the present invention can be equally applied in a situation where at least one illumination device exists.

도 2를 참조하면, 본 발명의 실시 예에 따른 전자 장치(200)는 페어링할 대상이 되는 제 2 조명 장치(210-2)를 촬영한다. 이때 전자 장치(200)는 제 2 조명 장치(210-2)의 촬영을 통해 제 2 조명 장치(210-2)를 식별할 수 있는 데이터를 획득할 수 있다(220단계). 예를 들어, 전자 장치(200)는 제 2 조명 장치(210-2)의 촬영 이미지로부터 제 2 조명 장치(210-2)의 RGB(Red Green Blue) 값을 획득할 수 있다. 다른 예로, 전자 장치(200)는 제 2 조명 장치(210-2)를 소정 시간 동안 촬영하여, 제 2 조명 장치(210-2)의 조명 출력이 온/오프되는 횟수를 나타내는 주기 값을 획득할 수 있다. 예를 들어, 전자 장치(200)는 10초 동안 조명 장치가 온/오프되는 횟수를 측정할 수 있다. 즉, 전자 장치(200)는 제 2 조명 장치(210-2)의 식별 데이터로, 조명 장치의 RGB 값 혹은 조명 주기 값을 획득할 수 있다. Referring to FIG. 2, an electronic device 200 according to an embodiment of the present invention photographs a second illuminating device 210-2 to be paired. At this time, the electronic device 200 may acquire data capable of identifying the second illuminating device 210-2 through the photographing of the second illuminating device 210-2 (step 220). For example, the electronic device 200 may obtain the RGB (Red Green Blue) value of the second illuminating device 210-2 from the photographed image of the second illuminating device 210-2. As another example, the electronic device 200 may photograph the second illuminating device 210-2 for a predetermined time period to obtain a period value indicating the number of times the illumination output of the second illuminating device 210-2 is turned on / off . For example, the electronic device 200 may measure the number of times the illuminator is turned on / off for 10 seconds. That is, the electronic device 200 can obtain the RGB value or the illumination period value of the illuminating device with the identification data of the second illuminating device 210-2.

제 2 조명 장치(210-2)의 식별 데이터를 획득한 전자 장치(100)는 획득된 식별 데이터를 주변 제 1 조명 장치(210-1), 제 2 조명 장치(210-2), 제 3 조명 장치(210-3)로 전송한다(222단계). 예컨대, 전자 장치(200)는 광고 채널(advertising channel)을 통해 전송되는 광고 메시지에 획득된 식별 데이터를 포함시켜 주변 제 1 조명 장치(210-1), 제 2 조명 장치(210-2), 제 3 조명 장치(210-3)로 전송할 수 있다. 다른 실시 예에 따라, 전자 장치(200)는 광고 채널을 통해 전송되는 광고 메시지 이외에, 다른 채널을 통해 전송되는 다른 타입의 메시지에 식별 데이터를 포함시켜 주변 제 1 조명 장치(210-1), 제 2 조명 장치(210-2), 제 3 조명 장치(210-3)로 전송할 수도 있다.The electronic device 100 that has obtained the identification data of the second illuminating device 210-2 transmits the obtained identification data to the peripheral first illuminating device 210-1, the second illuminating device 210-2, To the device 210-3 (step 222). For example, the electronic device 200 may include identification data obtained in an advertisement message transmitted through an advertising channel, and may include peripheral first illumination device 210-1, second illumination device 210-2, 3 lighting apparatus 210-3. According to another embodiment, in addition to the advertisement message transmitted through the advertisement channel, the electronic device 200 may include identification data in other types of messages transmitted through other channels, 2 lighting device 210-2, and the third lighting device 210-3.

각 제 1 조명 장치(210-1), 제 2 조명 장치(210-2), 제 3 조명 장치(210-3)는 전자 장치(200)로부터 수신된 식별 데이터를 기반으로 인증 과정을 수행할 수 있다(224단계). 즉, 각 제 1 조명 장치(210-1), 제 2 조명 장치(210-2), 제 3 조명 장치(210-3)는 전자 장치(200)로부터 수신된 식별 데이터와 자신의 식별 데이터를 비교하여 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신인지 여부를 판단할 수 있다. 예를 들어, 제 2 조명 장치(210-2)는 전자 장치(200)로부터 수신된 식별 데이터와 자신의 식별 데이터를 비교하여, 수신된 식별 데이터와 자신의 식별 데이터가 동일한 것을 확인하고, 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신임을 판단한다. 이에 따라, 제 2 조명 장치(210-2)는 전자 장치(200)로 응답 신호를 전송하여 페어링 과정을 수행할 수 있다. 다른 예로, 제 1 조명 장치(210-1)와 제 3 조명 장치(210-3) 각각은 전자 장치(200)로부터 수신된 식별 데이터와 자신의 식별 데이터를 비교하여, 수신된 식별 데이터와 자신의 식별 데이터가 다른 것을 확인하고, 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신이 아닌 것으로 판단한다. 이에 따라, 제 1 조명 장치(210-1)와 제 3 조명 장치(210-3) 각각은 어떠한 응답 동작도 수행하지 않을 수 있다. Each of the first illuminating device 210-1, the second illuminating device 210-2 and the third illuminating device 210-3 can perform the authentication process based on the identification data received from the electronic device 200 (Step 224). That is, each of the first illuminating device 210-1, the second illuminating device 210-2, and the third illuminating device 210-3 compares the identification data received from the electronic device 200 with its own identification data So that the electronic device 200 can determine whether the lighting device to be paired is the self. For example, the second illuminating device 210-2 compares the identification data received from the electronic device 200 with the identification data of the second illuminating device 210-2 to confirm that the identification data thereof is the same as the identification data thereof, The controller 200 determines that the lighting device to be paired is the own device. Accordingly, the second illuminating device 210-2 can transmit a response signal to the electronic device 200 to perform a pairing process. As another example, each of the first illuminating device 210-1 and the third illuminating device 210-3 may compare identification data received from the electronic device 200 with its own identification data, It is determined that the identification data is different and the electronic device 200 judges that the lighting device to be paired is not itself. Accordingly, each of the first illuminating device 210-1 and the third illuminating device 210-3 may not perform any response operation.

추가적으로, 전자 장치(200)와 제 2 조명 장치(210-2)는 인증에 이용된 식별 데이터(예: 조명의 RGB 값, 혹은 조명의 주기 값)을 기반으로 임시 키(TK: Temporary Key)를 생성하여, 페어링 과정에 이용할 수 있다. 예를 들어, 전자 장치(200)와 제 2 조명 장치(210-2)는 식별 데이터를 기반으로 생성된 TK를 이용하여 페어링 시에 링크 계층 암호화를 수행할 수 있다.In addition, the electronic device 200 and the second illuminator 210-2 may generate a Temporary Key (TK) based on the identification data (e.g., the RGB value of the light or the period value of the illumination) And can be used for the pairing process. For example, the electronic device 200 and the second illuminator 210-2 can perform link layer encryption at the time of pairing using the TK generated based on the identification data.

도 3a는 본 발명의 실시 예에 따른 전자 장치의 페어링 절차를 도시하고 있다.3A shows a pairing procedure of an electronic device according to an embodiment of the present invention.

도 3a를 참조하면, 전자 장치(200)는 301단계에서 블루투스 페어링 이벤트가 발생되는지 여부를 감지한다. 블루투스 페어링 이벤트는 사용자 입력 혹은 특정 애플리케이션 실행 등에 의해 발생될 수 있다. 예를 들어, 본 발명의 실시 예에서는 특정 조명 장치를 제어하기 위한 사용자 입력 혹은 조명 장치를 제어하기 위한 애플리케이션 실행 등에 의해 블루투스 페어링 이벤트가 발생될 수 있다. 보다 상세한 예로, 블루투스를 지원하는 조명 장치를 제어하기 위한 애플리케이션에서, 조명 장치와의 페어링 메뉴 혹은 페어링 모드가 선택될 시, 블루투스 페어링 이벤트가 발생됨을 감지할 수 있다.Referring to FIG. 3A, the electronic device 200 detects whether a Bluetooth pairing event is generated in step 301. FIG. The Bluetooth pairing event can be generated by user input or by execution of a specific application. For example, in an embodiment of the present invention, a Bluetooth pairing event may be generated by a user input for controlling a specific lighting device or an application execution for controlling a lighting device. As a more detailed example, in an application for controlling a lighting device supporting Bluetooth, when a pairing menu with a lighting device or a pairing mode is selected, it can be detected that a Bluetooth pairing event is generated.

전자 장치(200)는 블루투스 페어링 이벤트 발생이 감지될 시, 303단계에서 카메라를 자동으로 구동시키고, 페어링 요청 신호를 전송한다. 예를 들어, 전자 장치(200)는 블루투스 페어링 이벤트 발생이 감지될 시, 주변 조명 장치를 촬영하기 위해 카메라를 자동으로 구동시키고, 주변 조명 장치들로 페어링 요청 신호를 전송할 수 있다. 예를 들어, 전자 장치(200)는 도 4에 도시된 바와 같이, IO capability가 keyboard/Display(411)이고, MITM(Man-In-The-Middle attack)이 Yes(412)인 페어링 요청 신호(410)를 전송할 수 있다. 여기서, IO capability는 전자 장치(200)는 입력 및 출력이 가능한지 여부를 나타내는 것으로서, 도 4의 실시 예에서는 전자 장치(200)가 키보드를 통한 입력이 가능하고 화면 디스플레이가 가능함을 나타낸다. 또한, MITM은 TK 키를 이용하여 중간자 공격으로부터 보호가 가능한지 여부를 나타내는 것으로서, 도 4의 실시 예에서는 전자 장치(200)가 TK키를 이용하여 중간자 공격이 가능함을 나타낸다. When the occurrence of the Bluetooth pairing event is detected, the electronic device 200 automatically drives the camera in step 303 and transmits a pairing request signal. For example, when the Bluetooth pairing event is detected, the electronic device 200 may automatically drive the camera to photograph the peripheral illumination device and transmit a pairing request signal to the peripheral illumination devices. For example, as shown in FIG. 4, the electronic device 200 may generate a pairing request signal (I4) in which the IO capability is keyboard / Display 411 and the Man-In-The-Middle attack (MITM) 410). Here, the IO capability indicates whether the electronic device 200 is capable of inputting and outputting. In the embodiment of FIG. 4, the electronic device 200 is capable of inputting via the keyboard and displaying the screen. In addition, MITM indicates whether or not the TK key can be used to protect against a man-in-the-middle attack. In the embodiment of FIG. 4, the electronic device 200 indicates that the man-in-the-middle attack is possible using the TK key.

이후, 전자 장치(200)는 305단계에서 조명 장치를 촬영하여 식별 데이터를 획득한다. 예를 들어, 전자 장치(200)는 자동으로 구동된 카메라를 통해 조명 장치를 촬영하여 캡처 이미지(정지 이미지)를 획득하고, 캡처 이미지로부터 조명 장치의 RGB 값을 추출할 수 있다. 다른 예로, 전자 장치(200)는 자동으로 구동된 카메라를 통해 소정 시간 동안 조명 장치를 촬영하여 동영상을 획득하고, 획득된 동영상에 포함된 다수의 이미지들을 분석하여 조명의 주기 값을 획득할 수 있다. 여기서, 전자 장치(200)는 카메라가 자동으로 구동된 상태에서 사용자의 입력에 의해 조명 장치를 촬영하여 캡처 이미지 혹은 동영상을 획득할 수 있다.Then, the electronic device 200 captures the illumination device in step 305 to acquire the identification data. For example, the electronic device 200 can capture a captured image (still image) by capturing an illuminating device through an automatically driven camera and extracting the RGB values of the illuminating device from the captured image. As another example, the electronic device 200 may acquire a moving image by photographing the illuminating device for a predetermined period of time through an automatically driven camera, and analyze a plurality of images included in the acquired moving image to obtain a period value of illumination . Here, the electronic device 200 can acquire a captured image or a moving image by photographing the lighting apparatus by the user's input while the camera is automatically driven.

이후, 전자 장치(200)는 307단계로 진행하여 촬영에 의해 획득된 식별 데이터를 조명 장치로 전송한다. 예를 들어, 전자 장치(200)는 캡처 이미지로부터 획득된 조명 장치의 RGB 값 혹은 동영상으로부터 획득된 조명 장치의 주기 값을 광고 메시지에 포함시켜, 광고 채널을 통해 주변에 위치한 적어도 하나의 조명 장치로 전송한다.Thereafter, the electronic device 200 proceeds to step 307 to transmit the identification data obtained by the photographing to the lighting device. For example, the electronic device 200 may include an RGB value of the illuminating device obtained from the captured image, or a period value of the illuminating device obtained from the moving image, in the advertisement message to provide at least one illuminating device send.

이후, 전자 장치(200)는 조명 장치로부터 페어링 응답 신호를 수신한다. 예를 들어, 전자 장치(200)는 전자 장치(200)에서 촬영한 조명 장치(210)로부터 페어링 응답 신호를 수신할 수 있다. 도 4에 도시된 바와 같이, 페어링 응답 신호(420)는 IO capability가 keyboard/Display(421)이고, MITM(Man-In-The-Middle attack)이 Yes(422)일 수 있다. 여기서, IO capability는 조명 장치(210)의 입력 및 출력이 가능한지 여부를 나타내고, MITM은 TK 키를 이용하여 중간자 공격으로부터 보호가 가능한지 여부를 나타낸다. 실질적으로 조명 장치(210)는 키보드를 통한 입력 및 화면 디스플레이가 불가능하고 TK를 입력받을 수 없는 상황이나, 본 발명의 실시 예에서는 조명 장치(210)의 제어에 의해 페어링 응답 신호(420)의 IO capability는 keyboard/Display(421)를 나타내고, MITM은 Yes를 나타낼 수 있다. 이는 조명 장치의 식별 데이터를 기반으로 TK 값을 생성하여 패스키 앤트리(Passkey Entry) 모드로 페어링을 진행하기 위함이다. 여기서, 패스키 앤트리 모드는 공지된 블루투스 페어링 모드 중 하나이다. Thereafter, the electronic device 200 receives a pairing response signal from the lighting device. For example, the electronic device 200 may receive a pairing response signal from the lighting device 210 photographed at the electronic device 200. As shown in FIG. 4, the pairing response signal 420 may have the IO capability of keyboard / Display 421 and the Man-In-The-Middle attack (MITM) may be Yes 422. Here, the IO capability indicates whether input and output of the illumination device 210 are possible, and the MITM indicates whether or not it is possible to protect against the meson attack using the TK key. The illumination device 210 can not input the TK through the keyboard and can not receive the input of the TK. However, according to the embodiment of the present invention, capability indicates keyboard / Display 421, and MITM indicates Yes. This is to generate a TK value based on the identification data of the lighting device and proceed with pairing in a passkey entry mode. Here, the pass key and tree mode is one of the known Bluetooth pairing modes.

이후, 전자 장치(200)는 식별 데이터를 기반으로 TK를 생성한다. 예를 들어, 전자 장치(200)는 조명 장치의 RGB 값 혹은 조명 주기를 기반으로 6자리의 TK를 생성할 수 있다. 실시 예에 따라, 전자 장치(200)는 조명 주기에 임의의 고정된 값(k)를 곱하여 6자리 숫자로 구성된 TK 값을 생성할 수 있다. 다른 실시 예에 따라, 전자 장치(200)는 도 5에 도시된 바와 같이, 조명 장치의 RGB 값 중에서 R 값을 이용하여 6자리의 TK값 중 2자리의 값을 생성하고, G 값을 이용하여 다른 2자리의 값을 생성하고, B 값을 이용하여 나머지 2자리의 값을 생성할 수 있다. 실시 예에 따라, 전자 장치(200)는 공지된 컬러 양자화(color quantization) 방식을 이용하여 RGB를 6자리의 TK로 변경할 수 있다. 예를 들어, 전자 장치(200)는 255단계로 표현되는 R값, G값, B값 각각을 임의의 레벨(예: 10단계 레벨)로 변환하는 컬러 양자화 방식을 이용하여, RGB를 TK로 변경할 수 있다. 예를 들어, 공지된 컬러 양자화 방식으로는 균일한 컬러 양자화(uniform color quantization), 대중성 알고리즘(popularity algorithm), 미디언 컷 알고리즘(median cut algorithm), 및 옥트리 알고리즘(Octree algorithm)이 있다. 균일한 컬러 양자화는 R, G, B 값 각각을 일정한 간격으로 나누는 방식이다. 예를 들어, 균일한 컬러 양자화는 R값과 G값을 8계의 단계로 구분하고, B값을 4개의 단계로 구분하여 RGB 값을 총 256단계로 분리하는 방식이다. 대중성 알고리즘은 스캔 이미지로부터 획득된 컬러와 컬러의 횟수에 대한 목록을 생성하고, 생성된 목록에서 횟수를 기반으로 컬러를 정렬하여 상위 256개를 선택하는 방식이다. 미디언 컷 알고리즘 방식은 R, G, B값의 축을 3D 평면도로 변환한 후, 원하는 색의 수만큼을 분리하는 방식이다. 옥트리 알고리즘은 깊이가 N인 트리를 생성하고, 트리의 깊이를 조절하여 원하는 컬러의 수를 선택하는 방식이다.Then, the electronic device 200 generates the TK based on the identification data. For example, the electronic device 200 may generate a six-digit TK based on the RGB value or illumination period of the illuminator. According to an embodiment, the electronic device 200 may multiply the illumination period by any fixed value (k) to produce a TK value comprised of six digits. According to another embodiment, the electronic device 200 generates a 2-digit value of the 6-digit TK value using the R value among the RGB values of the lighting device, as shown in FIG. 5, The other 2-digit value can be generated, and the remaining 2-digit value can be generated using the B value. According to an embodiment, the electronic device 200 may change RGB to a six digit TK using a known color quantization scheme. For example, the electronic device 200 may change RGB to TK by using a color quantization method that converts each of the R value, the G value, and the B value represented by the step 255 into an arbitrary level (e.g., 10 levels) . For example, known color quantization schemes include uniform color quantization, popularity algorithms, median cut algorithms, and Octree algorithms. The uniform color quantization is a method of dividing R, G, and B values at regular intervals. For example, uniform color quantization is a method of dividing RGB values into 256 steps by dividing R value and G value into 8 levels and dividing B value into 4 levels. The popularity algorithm is a method of generating a list of the number of colors and colors obtained from the scanned image, and sorting the colors based on the number of times in the generated list to select the top 256 ones. The median cut algorithm method converts the axes of R, G, and B values into a 3D planar view, and then separates the number of desired colors. The Octree algorithm generates a tree with a depth of N and adjusts the depth of the tree to select the desired number of colors.

이후, 전자 장치(200)는 313단계에서 생성된 TK 값을 기반으로 조명 장치와 페어링 과정을 수행한다. 예를 들어, 전자 장치(200)는 TK 값을 기반으로 인증과정을 수행하고, TK 값을 기반으로 STK(Short Term Key) 값을 생성하여 링크 계층 암호화를 수행하고, TK 값 및/혹은 STK 값을 기반을 LTK(Long Term Key) 값을 생성하여 전자 장치(200)와 조명 장치(210)의 통신에 이용할 수 있다.Thereafter, the electronic device 200 performs a pairing process with the lighting device based on the TK value generated in step 313. [ For example, the electronic device 200 performs an authentication process based on the TK value, generates a Short Term Key (STK) value based on the TK value to perform link layer encryption, and transmits the TK value and / or the STK value Based LTK (Long Term Key) value to be used for communication between the electronic device 200 and the illuminating device 210.

이후, 전자 장치(200)는 본 발명의 실시 예에 따른 페어링 절차를 종료할 수 있다.Thereafter, the electronic device 200 may terminate the pairing procedure according to an embodiment of the present invention.

도 3b는 본 발명의 실시 예에 따른 조명 장치의 페어링 절차를 도시하고 있다.FIG. 3B shows a pairing procedure of a lighting apparatus according to an embodiment of the present invention.

도 3b를 참조하면, 조명 장치(210)는 321단계에서 전자 장치(200)로부터 페어링 요청 신호를 수신하고, 323단계에서 조명 장치의 식별 데이터를 전자 장치(200)로 알리기 위한 기능을 수행한다. 예를 들어, 조명 장치(210)는 전자 장치(200)와 페어링되지 않은 상태에서, 전자 장치(200)와의 페어링을 위해 자신의 맥 주소(MAC address)를 기반으로 랜덤한 RGB 값 혹은 주기 값을 생성하고, 생성된 RGB 값 혹은 주기 값에 따라 조명을 출력할 수 있다. 여기서, RGB 값 혹은 주기 값은 조명 장치(210)의 맥주소를 기반으로 생성되므로, 다수의 조명 장치들 중에서 해당 조명 장치(210)를 구분해낼 수 있도록 하는 식별 데이터로 이용될 수 있다.Referring to FIG. 3B, the lighting device 210 receives a pairing request signal from the electronic device 200 in step 321, and informs the electronic device 200 of the identification data of the lighting device in step 323. FIG. For example, the lighting device 210 may generate a random RGB value or cycle value based on its MAC address for pairing with the electronic device 200 without being paired with the electronic device 200 And output the illumination according to the generated RGB value or cycle value. Since the RGB value or the period value is generated based on the MAC address of the lighting device 210, the RGB value or the period value can be used as identification data for identifying the lighting device 210 among the plurality of lighting devices.

이후, 조명 장치(210)는 325단계에서 전자 장치(200)로부터 식별 데이터를 수신하고, 327단계에서 전자 장치(200)로부터 수신된 식별 데이터와 자신의 식별 데이터가 일치하는지 여부를 검사한다. 예를 들어, 조명 장치(210)는 전자 장치(200)로부터 수신되는 RGB 값이 323단계에서 생성된 RGB값과 동일한지 여부를 비교할 수 있다. 또 다른 예로, 조명 장치(210)는 전자 장치(200)로부터 수신되는 조명의 주기 값이 323단계에서 생성된 조명 주기 값과 동일한지 여부를 비교할 수 있다. 조명 장치(210)는 전자 장치(200)로부터 수신된 식별 데이터와 자신의 식별 데이터가 일치하지 않을 시, 전자 장치(200)가 자신이 아닌 다른 조명 장치와 페어링을 원하는 것으로 인식하고, 본 발명의 실시 예에 따른 절차를 종료할 수 있다.Thereafter, the illumination device 210 receives the identification data from the electronic device 200 in step 325, and checks whether the identification data received from the electronic device 200 matches the identification data of the electronic device 200 in step 327. For example, the lighting device 210 may compare whether the RGB value received from the electronic device 200 is the same as the RGB value generated in step 323. [ As another example, the lighting device 210 may compare whether the period value of the illumination received from the electronic device 200 is the same as the illumination period value generated in step 323. [ When the identification data received from the electronic device 200 and the identification data of the electronic device 200 do not match, the lighting device 210 recognizes that the electronic device 200 desires to pair with another lighting device other than itself, The procedure according to the embodiment can be terminated.

조명 장치(210)는 전자 장치(200)로부터 수신된 식별 데이터와 자신의 식별 데이터가 일치할 시, 전자 장치(200)가 자신과 페어링을 원하는 것으로 인식하고, 329단계로 진행하여 전자 장치로 페어링 응답 신호를 전송한다. 페어링 응답 신호(420)는 도 4에 도시된 바와 같이, IO capability가 keyboard/Display(421)이고, MITM(Man-In-The-Middle attack)이 Yes(422)일 수 있다. 여기서, IO capability는 조명 장치(210)의 입력 및 출력이 가능한지 여부를 나타내고, MITM은 TK 키를 이용하여 중간자 공격으로부터 보호가 가능한지 여부를 나타낸다. 실질적으로 조명 장치(210)는 키보드를 통한 입력 및 화면 디스플레이가 불가능하고 TK를 입력받을 수 없는 상황이나, 본 발명의 실시 예에 따른 조명 장치(210)는 페어링 응답 신호(420)의 IO capability를 keyboard/Display(421)로 설정하고, MITM를 Yes로 설정한다. 이는 조명 장치(210)의 식별 데이터를 기반으로 TK 값을 생성하여 패스키 앤트리(Passkey Entry) 모드로 페어링을 진행하기 위함이다.When the identification data received from the electronic device 200 matches the identification data of the electronic device 200, the lighting device 210 recognizes that the electronic device 200 wants to pair with the electronic device 200. In step 329, And transmits a response signal. The pairing response signal 420 may be the keyboard / display 421 and the Man-In-The-Middle attack (MITM) may be Yes 422 as shown in FIG. Here, the IO capability indicates whether input and output of the illumination device 210 are possible, and the MITM indicates whether or not it is possible to protect against the meson attack using the TK key. The illuminating device 210 according to the embodiment of the present invention can not input the IO capability of the pairing response signal 420, keyboard / Display (421), and set MITM to Yes. This is to generate a TK value based on the identification data of the lighting device 210 and proceed with pairing in a passkey entry mode.

이후, 조명 장치(210)는 331단계에서 식별 데이터를 기반으로 TK를 생성한다. 예를 들어, 조명 장치(210)는 자신의 맥주소를 기반으로 생성된 RBG 값 혹은 조명 주기를 이용하여 TK를 생성할 수 있다. 실시 예에 따라, 조명 장치(210)는 조명 주기에 임의의 고정된 값(k)를 곱하여 6자리 숫자로 구성된 TK 값을 생성할 수 있다. 여기서, 임의의 고정된 값(k)은 전자 장치(200)와 미리 약속된 값일 수 있다. 다른 실시 예에 따라, 조명 장치(210)는 도 5에 도시된 바와 같이, 조명 장치의 RGB 값 중에서 R 값을 이용하여 6자리의 TK값 중 2자리의 값을 생성하고, G 값을 이용하여 다른 2자리의 값을 생성하고, B 값을 이용하여 나머지 2자리의 값을 생성할 수 있다. 실시 예에 따라, 조명 장치(210)는 공지된 컬러 양자화(color quantization) 방식을 이용하여 RGB를 6자리의 TK로 변경할 수 있다. 여기서, 조명 장치(210)는 전자 장치(200)와 동일한 컬러 양자화 방식을 이용하여 TK 값을 생성할 수 있다.Thereafter, the lighting device 210 generates a TK based on the identification data in step 331. [ For example, the lighting device 210 may generate the TK using the RBG value or the lighting period generated based on the MAC address of the lighting device 210. [ In accordance with an embodiment, the lighting device 210 may multiply the illumination period by any fixed value (k) to produce a TK value comprised of six digits. Here, any fixed value k may be a predetermined value with the electronic device 200. According to another embodiment, as shown in FIG. 5, the illuminating device 210 generates a 2-digit value of the 6-digit TK value using the R value among the RGB values of the illuminating device, The other 2-digit value can be generated, and the remaining 2-digit value can be generated using the B value. In accordance with an embodiment, the lighting device 210 may change RGB to a six-digit TK using a known color quantization scheme. Here, the lighting device 210 may generate the TK value using the same color quantization scheme as the electronic device 200. [

이후, 조명 장치(210)는 333단계로 진행하여 생성된 TK 값을 기반으로 전자 장치(200)와 페어링 과정을 수행한다. 예를 들어, 조명 장치(210)는 TK 값을 기반으로 인증과정을 수행하고, TK 값을 기반으로 STK(Short Term Key) 값을 생성하여 링크 암호화를 수행한 후, TK 값 및/혹은 STK 값을 기반을 LTK(Long Term Key) 값을 생성하여 전자 장치(200)와 조명 장치(210)의 통신에 이용할 수 있다.Then, the lighting device 210 proceeds to step 333 and performs a pairing process with the electronic device 200 based on the TK value generated. For example, the lighting apparatus 210 performs an authentication process based on the TK value, generates a short term key (STK) value based on the TK value, performs link encryption, and then transmits the TK value and / or the STK value Based LTK (Long Term Key) value to be used for communication between the electronic device 200 and the illuminating device 210.

이후, 조명 장치(210)는 본 발명의 실시 예에 따른 페어링 절차를 종료할 수 있다.Thereafter, the lighting device 210 may terminate the pairing procedure according to an embodiment of the present invention.

도 6은 본 발명의 실시 예에 따른 전자 장치에서 페어링을 수행하는 상세한 절차를 도시하고 있다.6 shows a detailed procedure for performing pairing in an electronic device according to an embodiment of the present invention.

도 6을 참조하면, 전자 장치(200)는 601단계에서 블루투스 페어링 이벤트가 발생되는지 여부를 감지한다. 블루투스 페어링 이벤트는 사용자 입력 혹은 특정 애플리케이션 실행 등에 의해 발생될 수 있다. 예를 들어, 본 발명의 실시 예에서는 특정 조명 장치를 제어하기 위한 사용자 입력 혹은 조명 장치를 제어하기 위한 애플리케이션 실행 등에 의해 블루투스 페어링 이벤트가 발생될 수 있다. 보다 상세한 예로, 블루투스를 지원하는 조명 장치를 제어하기 위한 애플리케이션에서, 조명 장치와의 페어링 메뉴 혹은 페어링 모드가 선택될 시, 블루투스 페어링 이벤트가 발생됨을 감지할 수 있다.Referring to FIG. 6, in step 601, the electronic device 200 detects whether a Bluetooth pairing event is generated. The Bluetooth pairing event can be generated by user input or by execution of a specific application. For example, in an embodiment of the present invention, a Bluetooth pairing event may be generated by a user input for controlling a specific lighting device or an application execution for controlling a lighting device. As a more detailed example, in an application for controlling a lighting device supporting Bluetooth, when a pairing menu with a lighting device or a pairing mode is selected, it can be detected that a Bluetooth pairing event is generated.

전자 장치(200)는 블루투스 페어링 이벤트 발생이 감지될 시, 603단계에서 카메라를 자동으로 구동시키고, 페어링 요청 신호를 전송한다. 예를 들어, 전자 장치(200)는 블루투스 페어링 이벤트 발생이 감지될 시, 주변 조명 장치를 촬영하기 위해 카메라를 자동으로 구동시키고, 주변 조명 장치들로 페어링 요청 신호를 전송할 수 있다. 예를 들어, 전자 장치(200)는 도 4에 도시된 바와 같이, IO capability가 keyboard/Display(411)이고, MITM(Man-In-The-Middle attack)이 Yes(412)인 페어링 요청 신호(410)를 전송할 수 있다. When the occurrence of the Bluetooth pairing event is detected, the electronic device 200 automatically drives the camera in step 603 and transmits a pairing request signal. For example, when the Bluetooth pairing event is detected, the electronic device 200 may automatically drive the camera to photograph the peripheral illumination device and transmit a pairing request signal to the peripheral illumination devices. For example, as shown in FIG. 4, the electronic device 200 may generate a pairing request signal (I4) in which the IO capability is keyboard / Display 411 and the Man-In-The-Middle attack (MITM) 410).

이후, 전자 장치(200)는 페어링할 조명 장치의 타입을 확인한다. 예를 들어, 전자 장치(200)는 페어링할 조명 장치가 컬러 타입의 조명 장치인지 혹은 화이트 타입의 조명 장치인지 확인할 수 있다. 전자 장치(200)는 사용자의 입력에 의해 페어링할 조명 장치의 타입을 확인할 수 있다. 예를 들어, 전자 장치(200)는 화면에 페어링할 조명 장치의 타입을 선택하도록 요구하는 인터페이스를 디스플레이하여, 사용자 입력에 의해 페어링할 조명 장치의 타입을 확인할 수 있다. 이때, 전자 장치(200)는 페어링할 조명 장치가 컬러 타입인 것으로 확인될 시, 카메라 촬영 모드를 정지 이미지를 획득하는 사진 촬영 모드로 구동 혹은 전환할 수 있고, 페어링할 조명 장치가 화이트 타입인 것으로 확인될 시, 카메라 촬영 모드를 동영상 이미지를 획득하는 동영상 촬영 모드로 구동 혹은 전환할 수 있다. 다른 예로, 전자 장치(200)는 페어링할 조명 장치의 촬영 방식을 선택하도록 요구하는 인터페이스를 디스플레이하여, 사용자의 촬영 방식 선택에 의해 페어링할 조명 장치의 타입을 확인할 수도 있다. 예컨대, 사진 촬영 모드가 선택될 시 페어링할 조명 장치의 타입이 컬러인 것으로 결정할 수 있고, 동영상 촬영 모드가 선택될 시 페어링할 조명 장치의 타입이 화이트 타입인 것으로 결정할 수 있다. 다른 예로, 전자 장치(200)는 카메라 자동 구동에 의해 입력되는 이미지를 분석하여 페어링할 조명 장치가 컬러 타입인지 혹은 화이트 타입인지 판단할 수도 있다.Then, the electronic device 200 identifies the type of lighting device to be paired. For example, the electronic device 200 can confirm whether the lighting device to be paired is a color type lighting device or a white type lighting device. The electronic device 200 can identify the type of lighting device to be paired by the user's input. For example, the electronic device 200 may display an interface requesting to select a type of lighting device to pair with the screen, so that it can identify the type of lighting device to be paired by the user input. At this time, when it is confirmed that the lighting device to be paired is a color type, the electronic device 200 can drive or switch the camera photographing mode to a photographing mode for obtaining a still image, and the lighting device to be paired is a white type When it is confirmed, the camera shooting mode can be driven or switched to a moving image shooting mode for acquiring a moving image. As another example, the electronic device 200 may display an interface requesting to select a photographing mode of the lighting device to be paired, so that the type of the lighting device to be paired by the user's photographing mode selection may be confirmed. For example, when the picture taking mode is selected, it can be determined that the type of the lighting device to be paired is color, and when the moving picture taking mode is selected, it can be determined that the type of the lighting device to be paired is white type. As another example, the electronic device 200 may analyze the image input by the camera automatic driving to determine whether the lighting device to be paired is a color type or a white type.

만일, 페어링하고자 하는 조명 장치의 타입이 컬러 타입인 경우, 전자 장치(200)는 607단계에서 조명 장치를 촬영한 이미지를 획득하고, 609단계에서 획득된 이미지로부터 RGB 데이터를 획득할 수 있다. 예를 들어, 전자 장치(200)는 촬영을 통해 조명 장치를 포함하는 정지 이미지를 획득하고, 획득된 이미지 내에서 조명 장치의 컬러를 나타내는 RGB 값을 추출할 수 있다. 이후, 전자 장치(200)는 611단계로 진행하여 획득된 RGB 데이터를 조명 장치(210)로 전송하고 하기 613단계로 진행한다. 이때, 전자 장치(200)는 광고 메시지에 RGB 데이터를 포함시켜 광고 채널을 통해 전송할 수 있다. 이에 따라, 광고 메시지는 전자 장치(200)의 주변에 위치한 다수의 조명 장치들로 전송될 수 있다. If the type of the illumination device to be paired is a color type, the electronic device 200 may acquire an image of the illuminating device taken in step 607, and may acquire RGB data from the image obtained in step 609. For example, the electronic device 200 may acquire a still image including the illumination device through photography and extract an RGB value representing the color of the illumination device within the acquired image. Then, the electronic device 200 proceeds to step 611 and transmits the obtained RGB data to the lighting device 210, and then proceeds to step 613. At this time, the electronic device 200 may transmit the advertisement message including the RGB data through the advertisement channel. Accordingly, the advertisement message can be transmitted to a plurality of illuminating devices located in the periphery of the electronic device 200. [

한편, 페어링하고자 하는 조명 장치의 타입이 화이트 타입인 경우, 전자 장치(200)는 617단계에서 미리 설정된 시간 동안 조명 장치를 촬영하고, 619단계로 진행하여 조명 장치를 촬영한 동영상으로부터 주기 데이터를 획득한다. 예를 들어, 전자 장치(200)는 미리 설정된 시간(예: 10초) 동안 조명 장치를 촬영한 영상을 분석하여, 미리 설정된 시간 동안 조명이 온/오프 되는 횟수를 기반으로 조명의 주기 값을 획득할 수 있다. 이후, 전자 장치(200)는 621단계로 진행하여 획득된 주기 데이터를 조명 장치(210)로 전송하고 하기 613단계로 진행한다. 이때, 전자 장치(200)는 광고 메시지에 주기 데이터를 포함시켜 광고 채널을 통해 전송할 수 있다. 이에 따라, 광고 메시지는 전자 장치(200)의 주변에 위치한 다수의 조명 장치들로 전송될 수 있다. On the other hand, if the type of the lighting device to be paired is white type, the electronic device 200 photographs the lighting device for a preset time period in step 617, and proceeds to step 619 to acquire periodic data from the moving picture do. For example, the electronic device 200 may analyze the image of the illumination device taken for a preset time (e.g., 10 seconds) and acquire the period value of the illumination based on the number of times the illumination is turned on / off for a preset time can do. Then, the electronic device 200 proceeds to step 621 and transmits the acquired period data to the lighting device 210, and then proceeds to step 613. At this time, the electronic device 200 may transmit periodic data to the advertisement message through the advertisement channel. Accordingly, the advertisement message can be transmitted to a plurality of illuminating devices located in the periphery of the electronic device 200. [

전자 장치(200)는 613단계에서 조명 장치(210)로부터 페어링 응답 신호가 수신되는지 여부를 검사한다. 만일, 페어링 응답 신호가 수신될 시, 전자 장치(200)는 615단계로 진행하여 RGB 데이터 혹은 주기 데이터를 기반으로 TK 값을 생성한다. 예를 들어, 전자 장치(200)는 조명 장치(210)로 RGB 데이터를 전송하고, 이에 대한 응답으로 페어링 응답 신호를 수신한 경우, 컬러 양자화 방식을 이용하여 RGB 데이터를 기반으로 TK 값을 생성할 수 있다. 다른 예로, 전자 장치(200)는 조명 장치(210)로 주기 데이터를 전송하고, 이에 대한 응답으로 페어링 응답 신호를 수신한 경우, 주기 데이터에 미리 설정된 값을 곱하여 TK 값을 생성할 수 있다. The electronic device 200 checks in step 613 whether or not a pairing response signal is received from the lighting device 210. [ If a pairing response signal is received, the electronic device 200 proceeds to step 615 and generates a TK value based on the RGB data or the period data. For example, when the electronic device 200 transmits RGB data to the lighting device 210 and receives a pairing response signal in response thereto, the electronic device 200 generates a TK value based on the RGB data using the color quantization method . As another example, if the electronic device 200 transmits periodic data to the lighting device 210 and receives a pairing response signal in response thereto, the periodic data may be multiplied by a predetermined value to generate a TK value.

이후, 전자 장치(200)는 615단계로 진행하여 생성된 TK 값을 기반으로 인증 및 링크 계층 암호화를 수행하여 페어링 절차를 수행한다. 예를 들어, 전자 장치(200)는 TK 값을 기반으로 인증과정을 수행하고, TK 값을 기반으로 STK(Short Term Key) 값을 생성하여 링크 계층 암호화를 수행하고, TK 값 및/혹은 STK 값을 기반을 LTK(Long Term Key) 값을 생성하여 전자 장치(200)와 조명 장치(210)의 통신에 이용할 수 있다. 이후, 전자 장치(200)는 본 발명의 실시 예에 따른 페어링 절차를 종료한다.In step 615, the electronic device 200 performs authentication and link layer encryption based on the generated TK value to perform a pairing procedure. For example, the electronic device 200 performs an authentication process based on the TK value, generates a Short Term Key (STK) value based on the TK value to perform link layer encryption, and transmits the TK value and / or the STK value Based LTK (Long Term Key) value to be used for communication between the electronic device 200 and the illuminating device 210. Thereafter, the electronic device 200 ends the pairing procedure according to the embodiment of the present invention.

한편, 페어링 응답 신호가 수신되지 않을 시, 전자 장치(200)는 623단계로 진행하여 조명 장치로부터 화이트 타입의 페어링 진행을 요청하는 신호가 수신되는지 여부를 검사한다. 예를 들어, 전자 장치(200)는 RGB 데이터를 전송한 후, 소정 시간 이내에 페어링 응답 신호 대신 화이트 타입의 페어링 진행을 요청하는 신호가 수신되는지 여부를 검사한다. 만일, 화이트 타입의 페어링 진행을 요청하는 신호가 수신될 경우, 전자 장치(200)는 617단계로 되돌아가 이하 단계를 재수행한다.On the other hand, when the pairing response signal is not received, the electronic device 200 proceeds to step 623 and checks whether a signal requesting the white type of pairing progress is received from the lighting device. For example, after transmitting the RGB data, the electronic device 200 checks whether a signal requesting the white type pairing progress is received within a predetermined time period instead of the pairing response signal. If a signal requesting the white type pairing process is received, the electronic device 200 returns to step 617 and executes the following steps again.

반면, 전자 장치(200)는 화이트 타입의 페어링 진행을 요청하는 신호가 수신되지 않을 시, 즉, 소정 시간 이내에 페어링 응답 신호와 페어링 진행을 요청하는 신호 모두 수신되지 않을 시, 전자 장치(200)는 페어링이 실패된 것으로 판단하고, 본 발명의 실시 예에 따른 페어링 절차를 종료한다. 이때, 전자 장치(200)는 화면에 페어링이 실패됨을 나타내는 메시지를 디스플레이할 수 있다.On the other hand, when the electronic device 200 does not receive a signal requesting a pairing process of a white type, that is, a signal requesting a pairing progress with the pairing response signal is not received within a predetermined time, the electronic device 200 It is determined that the pairing has failed and the pairing procedure according to the embodiment of the present invention ends. At this time, the electronic device 200 may display a message indicating that the pairing fails on the screen.

도 7은 본 발명의 실시 예에 따른 조명 장치에서 페어링을 수행하는 상세한 절차를 도시하고 있다.FIG. 7 shows a detailed procedure for performing pairing in a lighting device according to an embodiment of the present invention.

도 7을 참조하면, 조명 장치(210)는 701단계에서 전자 장치(200)로부터 페어링 요청 신호를 수신하고, 703단계에서 조명 장치의 타입을 확인한다. 예를 들어, 조명 장치(210)는 자신이 컬러 타입의 조명 장치인지 혹은 화이트 타입의 조명 장치인지 확인할 수 있다. Referring to FIG. 7, the lighting apparatus 210 receives a pairing request signal from the electronic device 200 in step 701, and confirms the type of the lighting apparatus in step 703. FIG. For example, the lighting device 210 can determine whether it is a color type lighting device or a white type lighting device.

조명 장치(210)는 자신이 컬러 타입의 조명 장치인 경우, 705단계에서 맥주소를 기반으로 랜덤하게 RGB 값을 생성하고, 707단계로 진행하여 생성된 RGB 값을 기반으로 조명 기능을 수행한다. 예를 들어, 조명 장치(210)는 생성된 RGB 값에 대응하는 색상의 조명을 출력할 수 있다. 이후, 조명 장치(210)는 709단계에서 전자 장치로부터 RGB 데이터를 수신한다. 예를 들어, 조명 장치(210)는 광고 채널을 통해 광고 메시지를 수신하고, 광고 메시지로부터 RGB 데이터를 추출할 수 있다. 이후, 조명 장치(210)는 711단계에서 전자 장치(200)로부터 수신된 RGB 데이터와 705단계에서 생성된 RGB 값이 일치하는지 여부를 검사한다. 만일, 수신된 RGB 데이터와 생성된 RGB 값이 일치할 시, 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신인 것으로 판단하고, 조명 장치(210)는 713단계에서 전자 장치로 페어링 응답 신호를 전송한다. 여기서, 페어링 응답 신호(420)는 도 4에 도시된 바와 같이, IO capability가 keyboard/Display(421)이고, MITM(Man-In-The-Middle attack)이 Yes(422)일 수 있다. 예를 들어, 조명 장치(210)는 실질적으로 키보드를 통한 입력 및 화면 디스플레이가 불가능하고 TK를 입력받을 수 없는 상황이나, 본 발명의 실시 예에 따라 페어링 응답 신호(420)의 IO capability를 keyboard/Display(421)로 설정하고, MITM를 Yes로 설정할 수 있다. 이는 조명 장치(210)의 RGB 값 혹은 조명 주기 값을 기반으로 TK 값을 생성하여 패스키 앤트리(Passkey Entry) 모드로 페어링을 진행하기 위함이다. If it is a color type lighting device, the lighting device 210 randomly generates an RGB value based on the MAC address in step 705, and performs an illumination function based on the RGB value generated in step 707. For example, the illumination device 210 may output illumination of a color corresponding to the generated RGB value. Then, the lighting device 210 receives RGB data from the electronic device in step 709. [ For example, the lighting device 210 may receive the advertisement message via an advertisement channel and extract RGB data from the advertisement message. Then, the lighting apparatus 210 checks whether the RGB data received from the electronic device 200 in step 711 and the RGB values generated in step 705 match. If the received RGB data and the generated RGB value match, the electronic device 200 determines that the lighting device to be paired is itself, and the lighting device 210 transmits a pairing response signal to the electronic device in step 713 send. 4, the IO capability may be the keyboard / Display 421 and the Man-In-The-Middle attack (MITM) may be Yes 422. In this case, For example, the lighting device 210 can not input or display a screen through the keyboard and can not input a TK. However, according to the embodiment of the present invention, the IO capability of the pairing response signal 420 may be input to the keyboard / Display 421, and set MITM to Yes. This is to generate a TK value based on the RGB value or the illumination period value of the lighting device 210 and proceed with pairing in a passkey entry mode.

이후, 조명 장치(210)는 715단계로 진행하여 식별 데이터 즉 RGB 데이터를 기반으로 TK 값을 생성한다. 예를 들어, 조명 장치(210)는 공지된 컬러 양자화(color quantization) 방식을 이용하여 RGB를 6자리의 TK로 변경할 수 있다. 보다 상세한 예로, 조명 장치(210)는 컬러 양자화 방식을 기반으로 도 5에 도시된 바와 같이, 조명 장치의 RGB 값 중에서 R 값을 이용하여 6자리의 TK값 중 2자리의 값을 생성하고, G 값을 이용하여 6자리의 TK값 중 다른 2자리의 값을 생성하고, B 값을 이용하여 6자리의 TK값 중 나머지 2자리의 값을 생성할 수 있다. 여기서, 조명 장치(210)는 전자 장치(200)와 동일한 컬러 양자화 방식을 이용하여 TK 값을 생성할 수 있다.Then, the lighting apparatus 210 proceeds to step 715 and generates a TK value based on the identification data, that is, RGB data. For example, the lighting device 210 may change RGB to a six-digit TK using a known color quantization scheme. As shown in FIG. 5, the lighting apparatus 210 generates a 2-digit TK value using the R value among the RGB values of the lighting apparatus based on the color quantization scheme, Value of the 6-digit TK value and another 2-digit value of the 6-digit TK value using the B value. Here, the lighting device 210 may generate the TK value using the same color quantization scheme as the electronic device 200. [

이후, 조명 장치(210)는 717단계로 진행하여 생성된 TK 값을 기반으로 전자 장치(200)와 페어링 과정을 수행한다. 예를 들어, 조명 장치(210)는 TK 값을 기반으로 인증과정을 수행하고, TK 값을 기반으로 STK(Short Term Key) 값을 생성하여 링크 암호화를 수행한 후, TK 값 및/혹은 STK 값을 기반을 LTK(Long Term Key) 값을 생성하여 전자 장치(200)와 조명 장치(210)의 통신에 이용할 수 있다.Then, the lighting device 210 proceeds to step 717 and performs a pairing process with the electronic device 200 based on the generated TK value. For example, the lighting apparatus 210 performs an authentication process based on the TK value, generates a short term key (STK) value based on the TK value, performs link encryption, and then transmits the TK value and / or the STK value Based LTK (Long Term Key) value to be used for communication between the electronic device 200 and the illuminating device 210.

이후, 조명 장치(210)는 본 발명의 실시 예에 따른 페어링 절차를 종료할 수 있다.Thereafter, the lighting device 210 may terminate the pairing procedure according to an embodiment of the present invention.

한편, 711단계의 검사 결과 수신된 RGB 데이터와 생성된 RGB 값이 일치하지 않을 시, 조명 장치(210)는 727단계로 진행하여 필터 사용에 의해 RGB 값이 불일치하는 것인지 여부를 검사한다. 예를 들어, 조명 장치(210)에 특정 색상에 대한 필터가 포함된 경우, 조명 장치(210)의 조명 출력 색상은 맥 주소에 의해 생성된 RGB 값과 상이할 수 있다. 이 경우, 전자 장치(200)에서 조명 장치(210)를 촬영하여 획득한 RGB 값은 조명 장치(210)의 맥 주소에 의해 생성된 RGB 값과 상이하게 된다. 따라서, 조명 장치(210)는 수신된 RGB 데이터와 생성된 RGB 값이 일치하지 않을 시, 조명 장치(210)에 포함된 필터가 필터링하는 색상 계열을 제외한, 나머지 색상 계열의 값이 일치하는지 여부를 판단하여 필터 사용에 의해 RGB 값이 불일치하는 것인지 여부를 판단할 수 있다. 예를 들어, 조명 장치(210)가 R 계열의 필터를 사용하는 경우, 수신된 RGB 데이터와 생성된 RGB 값 중에서, R 값을 제외한 G 값과 B값이 일치하는지 여부를 판단한다. 만일, 수신된 RGB 데이터의 R값과 생성된 데이터의 R값이 불일치하나, 수신된 RGB 데이터의 G값과 생성된 데이터의 G값이 일치하고, 수신된 데이터의 B값과 생성된 데이터의 B값이 일치하는 경우, 조명 장치(210)는 필터 사용에 의해 RGB 값이 불일치 하는 것으로 판단할 수 있다. 한편, 수신된 RGB 데이터의 R값과 생성된 데이터의 R값이 불일치하고, 수신된 RGB 데이터의 G값과 생성된 데이터의 G값이 불일치하거나 혹은 수신된 데이터의 B값과 생성된 데이터의 B값이 불일치하는 경우, 조명 장치(210)는 필터 사용에 의해 RGB 값이 불일치 하는 것이 아님을 판단할 수 있다.If it is determined in step 711 that the received RGB data does not match the generated RGB value, the lighting apparatus 210 proceeds to step 727 and checks whether the RGB values are mismatched by using the filter. For example, if the lighting device 210 includes a filter for a particular color, the lighting output color of the lighting device 210 may be different from the RGB value generated by the MAC address. In this case, the RGB value obtained by photographing the lighting device 210 in the electronic device 200 is different from the RGB value generated by the MAC address of the lighting device 210. Accordingly, when the received RGB data and the generated RGB values do not match, the lighting apparatus 210 determines whether or not the values of the remaining color series except for the color series filtered by the filter included in the lighting apparatus 210 match It is possible to judge whether or not the RGB values are mismatched by using the filter. For example, when the illumination device 210 uses an R-series filter, it is determined whether the G value and the B value except the R value among the received RGB data and the generated RGB value match. If the R value of the received RGB data is inconsistent with the R value of the generated data but the G value of the received RGB data matches the G value of the generated data and the B value of the received data and B If the values match, the lighting device 210 may determine that the RGB values are mismatched by using the filter. On the other hand, if the R value of the received RGB data is inconsistent with the R value of the generated data, the G value of the received RGB data does not match the G value of the generated data, or the B value of the received data and B If the values do not match, the lighting device 210 may determine that the RGB values are not mismatched by using the filter.

만일, 필터 사용에 의해 RGB 값이 불일치하는 것일 경우, 조명 장치(210)는 729단계로 진행하여 전자 장치(200)로 화이트 타입의 페어링 진행을 요청하고, 719단계로 진행하여 이하 단계를 재수행한다.If the RGB values are inconsistent due to the use of the filter, the lighting apparatus 210 proceeds to step 729 to request the electronic device 200 to proceed with the pairing of the white type, and then proceeds to step 719 to re-execute the following steps .

반면, 필터 사용에 의해 RGB 값이 불일치하는 것이 아닐 경우, 조명 장치(210)는 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신이 아닌 것으로 파단하고, 본 발명의 실시 예에 따른 페어링 절차를 종료한다.On the other hand, if the RGB values are not mismatched due to the use of the filter, the lighting device 210 breaks the lighting device to be paired by the electronic device 200 into a non-self, and performs the pairing procedure according to the embodiment of the present invention And terminates.

한편, 703단계의 검사 결과 조면 장치(210)는 자신이 화이트 타입의 조명 장치인 경우, 719단계에서 맥주소를 기반으로 랜덤하게 주기 값을 생성하고, 721단계로 진행하여 생성된 주기 값을 기반으로 조명 기능을 수행한다. 예를 들어, 조명 장치(210)는 조명을 출력하는 중에 미리 설정된 시간 동안 생성된 주기 값에 대응하는 횟수만큼 조명이 온/오프되도록 제어할 수 있다. 이후, 조명 장치(210)는 723단계에서 전자 장치로부터 주기 데이터를 수신한다. 예를 들어, 조명 장치(210)는 광고 채널을 통해 광고 메시지를 수신하고, 광고 메시지로부터 주기 데이터를 추출할 수 있다. 이후, 조명 장치(210)는 725단계에서 전자 장치(200)로부터 수신된 주기 데이터와 719단계에서 생성된 주기 값이 일치하는지 여부를 검사한다. 만일, 수신된 주기 데이터와 생성된 주기 값이 일치하지 않을 시, 조명 장치(210)는 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신이 아닌 것으로 판단하고, 본 발명의 실시 예에 따른 페어링 절차를 종료한다.On the other hand, if it is determined in step 703 that the lighting device 210 is a white type lighting device, the roughing device 210 randomly generates a periodic value based on the MAC address in step 719, To perform a lighting function. For example, the illumination device 210 may control the illumination to be turned on / off a number of times corresponding to the period value generated during a predetermined time during outputting the illumination. Thereafter, the lighting device 210 receives the period data from the electronic device in step 723. [ For example, the lighting device 210 may receive the advertisement message via the advertisement channel and extract the periodic data from the advertisement message. Thereafter, the lighting apparatus 210 checks whether the period data received from the electronic device 200 in step 725 and the period value generated in step 719 coincide with each other. If the received periodic data does not match the generated periodic value, the lighting device 210 determines that the lighting device to be paired by the electronic device 200 is not its own, Exit the procedure.

반면, 수신된 주기 데이터와 생성된 주기 값이 일치할 시, 조명 장치(210)는 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신인 것으로 판단하고, 713단계에서 전자 장치로 페어링 응답 신호를 전송한다. 여기서, 페어링 응답 신호(420)는 도 4에 도시된 바와 같이, IO capability가 keyboard/Display(421)이고, MITM(Man-In-The-Middle attack)이 Yes(422)일 수 있다. 예를 들어, 조명 장치(210)는 실질적으로 키보드를 통한 입력 및 화면 디스플레이가 불가능하고 TK를 입력받을 수 없는 상황이나, 본 발명의 실시 예에 따라 페어링 응답 신호(420)의 IO capability를 keyboard/Display(421)로 설정하고, MITM를 Yes로 설정할 수 있다. 이는 조명 장치(210)의 RGB 값 혹은 조명 주기 값을 기반으로 TK 값을 생성하여 패스키 앤트리(Passkey Entry) 모드로 페어링을 진행하기 위함이다. On the other hand, when the received period data matches the generated period value, the lighting apparatus 210 determines that the lighting apparatus to be paired by the electronic apparatus 200 is the own apparatus, and transmits a pairing response signal to the electronic apparatus in step 713 send. 4, the IO capability may be the keyboard / Display 421 and the Man-In-The-Middle attack (MITM) may be Yes 422. In this case, For example, the lighting device 210 can not input or display a screen through the keyboard and can not input a TK. However, according to the embodiment of the present invention, the IO capability of the pairing response signal 420 may be input to the keyboard / Display 421, and set MITM to Yes. This is to generate a TK value based on the RGB value or the illumination period value of the lighting device 210 and proceed with pairing in a passkey entry mode.

이후, 조명 장치(210)는 715단계로 진행하여 식별 데이터 즉 조명의 주기 데이터를 기반으로 TK 값을 생성한다. 예를 들어, 조명 장치(210)는 주기 값에 미리 설정된 값을 곱하여 TK 값을 생성할 수 있다. 이후, 조명 장치(210)는 717단계로 진행하여 생성된 TK 값을 기반으로 전자 장치(200)와 페어링 과정을 수행한다. 예를 들어, 조명 장치(210)는 TK 값을 기반으로 인증과정을 수행하고, TK 값을 기반으로 STK(Short Term Key) 값을 생성하여 링크 암호화를 수행한 후, TK 값 및/혹은 STK 값을 기반을 LTK(Long Term Key) 값을 생성하여 전자 장치(200)와 조명 장치(210)의 통신에 이용할 수 있다.Thereafter, the lighting apparatus 210 proceeds to step 715 to generate the TK value based on the identification data, i.e., the period data of the illumination. For example, the lighting device 210 may generate the TK value by multiplying the period value by a predetermined value. Then, the lighting device 210 proceeds to step 717 and performs a pairing process with the electronic device 200 based on the generated TK value. For example, the lighting apparatus 210 performs an authentication process based on the TK value, generates a short term key (STK) value based on the TK value, performs link encryption, and then transmits the TK value and / or the STK value Based LTK (Long Term Key) value to be used for communication between the electronic device 200 and the illuminating device 210.

이후, 조명 장치(210)는 본 발명의 실시 예에 따른 페어링 절차를 종료할 수 있다.Thereafter, the lighting device 210 may terminate the pairing procedure according to an embodiment of the present invention.

상술한 도 3a, 도 3b, 도 6 및 도 7에서는, 블루투스 페어링 이벤트 발생이 감지될 시에, 전자 장치(200)에서 카메라를 자동으로 구동시키면서, 페어링 요청 신호를 전송하였다. 그러나 다른 실시 예에 따라, 전자 장치(200)는 식별 데이터를 획득한 이후, 페어링 요청 신호에 식별 데이터를 포함시키고, 식별 데이터를 포함하는 페어링 요청 신호를 전송할 수도 있다. 또 다른 실시 예로, 전자 장치(200)는 식별 데이터를 주변 조명 장치들로 전송하고, 식별 데이터와 별도로 주변 조명 장치들로 페어링 요청 신호를 전송할 수도 있다. 본 발명의 다른 실시 예에 따라 페어링 요청 신호가 식별 데이터를 획득한 이후에 전송되는 경우, 조명 장치(210)는 특정 시점마다 식별 데이터 알림 기능을 수행하거나, 항상 식별 데이터를 알릴 수 있다. 예를 들어, 페어링되지 않은 상태에서 미리 설정된 방식에 따라 미리 설정된 RGB 값 혹은 주기로 조명을 출력하고, 특정 시점 혹은 특정 시간 구간마다 자신의 맥 주소를 기반으로 랜덤하게 생성된 RGB 값 혹은 주기로 조명을 출력할 수 있다. 다른 예로, 페어링 되지 않은 상태에서 항상 자신의 맥 주소를 기반으로 랜덤하게 생성된 RGB 값 혹은 주기로 조명을 출력할 수 있다. 3A, 3B, 6, and 7, when the occurrence of the Bluetooth pairing event is detected, the electronic device 200 automatically drives the camera and transmits a pairing request signal. However, according to another embodiment, after acquiring the identification data, the electronic device 200 may include identification data in the pairing request signal and transmit a pairing request signal including the identification data. In another embodiment, the electronic device 200 may transmit identification data to peripheral lighting devices and may transmit a pairing request signal to the peripheral lighting devices separately from the identification data. According to another embodiment of the present invention, when the pairing request signal is transmitted after acquiring the identification data, the illumination device 210 may perform the identification data notification function or notify the identification data at every predetermined time. For example, in the unpaired state, a predetermined RGB value or a predetermined period of time may be output according to a preset method, and a randomly generated RGB value or cycle may be output can do. As another example, in the unpaired state, it is possible to always output lights at randomly generated RGB values or cycles based on their MAC addresses.

도 8은 본 발명의 실시 예에 따른 전자 장치의 블럭 구성을 도시하고 있다.Fig. 8 shows a block configuration of an electronic device according to an embodiment of the present invention.

도 8은 본 발명의 다양한 실시 예에 따른, 전자 장치(200)의 블럭 구성을 도시한다. 도 8을 참조하면, 상기 전자 장치(200)는 버스(810), 프로세서(820), 메모리(830), 입출력 인터페이스(840), 디스플레이(850), 통신 인터페이스(860), 페어링 모듈(870) 및 카메라 모듈(880)을 포함할 수 있다. Figure 8 illustrates a block diagram of an electronic device 200, in accordance with various embodiments of the present invention. 8, the electronic device 200 includes a bus 810, a processor 820, a memory 830, an input / output interface 840, a display 850, a communication interface 860, a pairing module 870, And a camera module 880.

버스(810)는 전술한 구성요소들을 서로 연결하고, 전술한 구성요소들 간의 통신(예: 제어 메시지)을 전달하는 회로일 수 있다.The bus 810 may be a circuit that interconnects the components described above and communicates (e.g., control messages) between the components described above.

프로세서(820)는, 예를 들면, 버스(810)를 통해 전술한 다른 구성요소들(예: 메모리(830), 입출력 인터페이스(840), 디스플레이(850), 통신 인터페이스(860), 또는 페어링 모듈(870) 등)로부터 명령을 수신하여, 수신된 명령을 해독하고, 해독된 명령에 따른 연산이나 데이터 처리를 실행할 수 있다. Processor 820 may be coupled to other components (e.g., memory 830, input / output interface 840, display 850, communication interface 860, or pairing module 820) via bus 810, (870), etc.), decrypt the received command, and execute computation or data processing according to the decrypted command.

메모리(830)는, 프로세서(820) 또는 다른 구성요소들(예: 상기 입출력 인터페이스(840), 디스플레이(850), 통신 인터페이스(860), 또는 페어링 모듈(870) 등)로부터 수신되거나 프로세서(820) 또는 다른 구성요소들에 의해 생성된 명령 또는 데이터를 저장할 수 있다. 메모리(830)는, 예를 들면, 커널(831), 미들웨어(832), 어플리케이션 프로그래밍 인터페이스(API: application programming interface)(833) 또는 어플리케이션(834) 등의 프로그래밍 모듈들을 포함할 수 있다. 전술한 각각의 프로그래밍 모듈들은 소프트웨어, 펌웨어, 하드웨어 또는 이들 중 적어도 둘 이상의 조합으로 구성될 수 있다.Memory 830 may be received from processor 820 or other components (e.g., input / output interface 840, display 850, communication interface 860, or pairing module 870, etc.) ) Or may store instructions or data generated by other components. The memory 830 may include programming modules such as, for example, a kernel 831, a middleware 832, an application programming interface (API) 833, or an application 834. Each of the above-described programming modules may be composed of software, firmware, hardware, or a combination of at least two of them.

커널(831)은 나머지 다른 프로그래밍 모듈들, 예를 들면, 미들웨어(832), API(833) 또는 어플리케이션(834)에 구현된 동작 또는 기능을 실행하는 데 사용되는 시스템 리소스들(예: 버스(810), 프로세서(820) 또는 상기 메모리(830) 등)을 제어 또는 관리할 수 있다. 또한, 커널(831)은 미들웨어(832), API(833) 또는 어플리케이션(834)에서 전자 장치(200)의 개별 구성요소에 접근하여 제어 또는 관리할 수 있는 인터페이스를 제공할 수 있다. The kernel 831 may include system resources (e. G., Bus 810, etc.) used to implement the operations or functions implemented in the other programming modules, e. G., Middleware 832, API 833, , The processor 820 or the memory 830, etc.). The kernel 831 may also provide an interface through which the individual components of the electronic device 200 may be accessed and controlled or managed in the middleware 832, the API 833, or the application 834.

미들웨어(832)는 API(833) 또는 어플리케이션(834)이 커널(831)과 통신하여 데이터를 주고받을 수 있도록 중개 역할을 수행할 수 있다. 또한, 미들웨어(832)는 어플리케이션(834)로부터 수신된 작업 요청들과 관련하여, 예를 들면, 어플리케이션(834) 중 적어도 하나의 어플리케이션에 전자 장치(200)의 시스템 리소스(예: 버스(810), 프로세서(820) 또는 메모리(830) 등)를 사용할 수 있는 우선 순위를 배정하는 등의 방법을 이용하여 작업 요청에 대한 제어(예: 스케쥴링 또는 로드 밸런싱)을 수행할 수 있다.The middleware 832 can act as an intermediary for the API 833 or the application 834 to communicate with the kernel 831 to exchange data. The middleware 832 may also be configured to communicate system resources (e.g., bus 810) of the electronic device 200 to at least one application of the application 834, for example in connection with work requests received from the application 834. [ (E.g., scheduling or load balancing) of a work request using a method such as assigning a priority that can be used by a processor (e.g., processor 820 or memory 830).

상기 API(833)는 어플리케이션(834)이 커널(831) 또는 미들웨어(832)에서 제공되는 기능을 제어하기 위한 인터페이스로, 예를 들면, 파일 제어, 창 제어, 화상 처리 또는 문자 제어 등을 위한 적어도 하나의 인터페이스 또는 함수(예: 명령어)를 포함할 수 있다. The API 833 is an interface for the application 834 to control the functions provided by the kernel 831 or the middleware 832. The API 833 is an interface for controlling at least the functions of the application 834 such as file control, An interface or a function (e.g., a command).

다양한 실시예에 따르면, 어플리케이션(834)은 SMS/MMS 어플리케이션, 이메일 어플리케이션, 달력 어플리케이션, 알람 어플리케이션, 건강 관리(health care) 어플리케이션(예: 운동량 또는 혈당 등을 측정하는 어플리케이션) 또는 환경 정보 어플리케이션(예: 기압, 습도 또는 온도 정보 등을 제공하는 어플리케이션), 조명 장치 제어 어플리케이션 등을 포함할 수 있다. 추가적으로 또는 대체적으로, 어플리케이션(834)은 전자 장치(200)와 외부 전자 장치 사이의 정보 교환과 관련된 어플리케이션일 수 있다. 정보 교환과 관련된 어플리케이션은, 예를 들어, 외부 전자 장치(예: 조명 장치(210), 혹은 다른 전자 장치)에 특정 정보를 전달하기 위한 알림 전달(notification relay) 어플리케이션, 또는 외부 전자 장치를 관리하기 위한 장치 관리(device management) 어플리케이션을 포함할 수 있다. According to various embodiments, the application 834 may be an SMS / MMS application, an email application, a calendar application, an alarm application, a health care application (e.g., an application that measures momentum or blood glucose) : Applications that provide air pressure, humidity, or temperature information, etc.), lighting device control applications, and the like. Additionally or alternatively, the application 834 may be an application related to the exchange of information between the electronic device 200 and an external electronic device. An application related to information exchange may include, for example, a notification relay application for communicating specific information to an external electronic device (e.g., lighting device 210, or other electronic device) A device management application may be included.

예를 들면, 알림 전달 어플리케이션은 전자 장치(200)의 다른 어플리케이션(예: SMS/MMS 어플리케이션, 이메일 어플리케이션, 건강 관리 어플리케이션 또는 환경 정보 어플리케이션 등)에서 발생한 알림 정보를 외부 전자 장치로 전달하는 기능을 포함할 수 있다. 추가적으로 또는 대체적으로, 알림 전달 어플리케이션은, 예를 들면, 외부 전자 장치(예: 전자 장치로부터 알림 정보를 수신하여 사용자에게 제공할 수 있다. 장치 관리 어플리케이션은, 예를 들면, 전자 장치(200)와 통신하는 외부 전자 장치(예: 조명 장치(210))의 적어도 일부에 대한 기능(예: 외부 전자 장치 자체(또는, 일부 구성 부품))의 턴온/턴오프, 밝기 조절, 색상 조절, 및 조명 주기를 관리하거나, 외부 전자 장치에서 동작하는 어플리케이션 또는 외부 전자 장치에서 제공되는 서비스를 관리(예: 설치, 삭제 또는 업데이트)할 수 있다. For example, the notification delivery application includes a function of transmitting notification information generated by another application (e.g., SMS / MMS application, email application, healthcare application, or environment information application) of the electronic device 200 to an external electronic device can do. Additionally or alternatively, the notification delivery application may receive notification information from, for example, an external electronic device (e.g., an electronic device and provide it to the user). The device management application may, for example, Turn on / turn off, brightness control, color adjustment, and lighting cycle (e.g., brightness) of a function (e.g., an external electronic device (or some component)) for at least a portion of a communicating external electronic device (E.g., install, delete, or update) services provided by an external electronic device or an application running on the external electronic device.

다양한 실시예에 따르면, 어플리케이션(834)은 외부 전자 장치의 속성(예: 조명 장치의 타입)에 따라 지정된 어플리케이션을 포함할 수 있다. 예를 들어, 외부 전자 장치가 조명 장치인 경우, 어플리케이션(834)은 조명과 관련된 어플리케이션을 포함할 수 있다. 한 실시예에 따르면, 어플리케이션(834)은 전자 장치(200)에 지정된 어플리케이션 또는 외부 전자 장치(예: 서버 또는 다른 전자 장치)로부터 수신된 어플리케이션 중 적어도 하나를 포함할 수 있다.According to various embodiments, the application 834 may include an application specified in accordance with an attribute of the external electronic device (e.g., a type of lighting device). For example, if the external electronic device is a lighting device, the application 834 may include an application related to lighting. According to one embodiment, the application 834 may include at least one of an application specified in the electronic device 200 or an application received from an external electronic device (e.g., a server or other electronic device).

입출력 인터페이스(840)는, 입출력 장치(예: 센서, 키보드 또는 터치 스크린)를 통하여 사용자로부터 입력된 명령 또는 데이터를, 예를 들면, 버스(810)를 통해 프로세서(820), 메모리(830), 통신 인터페이스(860), 또는 페어링 모듈(870)에 전달할 수 있다. 예를 들면, 입출력 인터페이스(840)는 터치 스크린을 통하여 입력된 사용자의 터치에 대한 데이터를 프로세서(820)로 제공할 수 있다. 또한, 입출력 인터페이스(840)는, 예를 들면, 버스(810)를 통해 프로세서(820), 메모리(830), 통신 인터페이스(860), 또는 페어링 모듈(870)로부터 수신된 명령 또는 데이터를 입출력 장치(예: 스피커 또는 디스플레이)를 통하여 출력할 수 있다. 예를 들면, 입출력 인터페이스(840)는 프로세서(820)를 통하여 처리된 음성 데이터를 스피커를 통하여 사용자에게 출력할 수 있다. The input / output interface 840 is configured to interface with the processor 820, the memory 830, and the memory 830 via a bus 810, for example, instructions or data input from a user via input / output devices (e.g., sensors, The communication interface 860, or the pairing module 870. For example, the input / output interface 840 may provide the processor 820 with data about the user's touch input via the touch screen. The input / output interface 840 also outputs commands or data received from the processor 820, the memory 830, the communication interface 860, or the pairing module 870 via the bus 810 to the input / (For example, a speaker or a display). For example, the input / output interface 840 can output the voice data processed through the processor 820 to the user through the speaker.

디스플레이(850)는 사용자에게 각종 정보(예: 멀티미디어 데이터 또는 텍스트 데이터 등)을 표시할 수 있다.Display 850 may display various information (e.g., multimedia data or text data, etc.) to the user.

통신 인터페이스(860)는 전자 장치(200)와 외부 장치(예: 조명 장치, 다른 전자 장치 또는 서버) 간의 통신을 연결할 수 있다. 예를 들면, 통신 인터페이스(860)는 무선 통신 또는 유선 통신을 통해서 네트워크에 연결되어 외부 장치와 통신할 수 있다. 무선 통신은, 예를 들어, Wifi(wireless fidelity), BT(Bluetooth), NFC(near field communication), GPS(global positioning system) 또는 cellular 통신(예: LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro 또는 GSM 등) 중 적어도 하나를 포함할 수 있다. 유선 통신은, 예를 들어, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard 232) 또는 POTS(plain old telephone service) 중 적어도 하나를 포함할 수 있다. 예를 들어, 통신 인터페이스(860)는 블루투스 통신을 이용하여 조명 장치와 통신할 수 있다.The communication interface 860 can connect communication between the electronic device 200 and an external device (e.g., a lighting device, another electronic device or a server). For example, the communication interface 860 can be connected to a network via wireless communication or wired communication to communicate with an external device. The wireless communication may be, for example, wireless fidelity (WFI), Bluetooth (BT), near field communication (NFC), global positioning system (GPS), or cellular communication (e.g., LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro or GSM, etc.). The wired communication may include at least one of, for example, a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard 232 (RS-232) or a plain old telephone service (POTS). For example, the communication interface 860 may communicate with the lighting device using Bluetooth communication.

한 실시예에 따르면, 네트워크는 통신 네트워크(telecommunications network)일 수 있다. 통신 네트워크 는 컴퓨터 네트워크(computer network), 인터넷(internet), 사물 인터넷(internet of things) 또는 전화망(telephone network) 중 적어도 하나를 포함할 수 있다. 한 실시예에 따르면, 전자 장치(200)와 외부 장치 간의 통신을 위한 프로토콜(예: transport layer protocol, data link layer protocol 또는 physical layer protocol))은 어플리케이션(834), 어플리케이션 프로그래밍 인터페이스(833), 미들웨어(832), 커널(831) 또는 통신 인터페이스(860) 중 적어도 하나에서 지원될 수 있다.According to one embodiment, the network may be a telecommunications network. The communication network may include at least one of a computer network, an internet, an internet of things, or a telephone network. (E.g., a transport layer protocol, a data link layer protocol, or a physical layer protocol) for communication between the electronic device 200 and an external device may include an application 834, an application programming interface 833, (832), the kernel (831), or the communication interface (860).

카메라 모듈(880)은 정지 영상 및 동영상을 촬영할 수 있는 장치로서, 일 실시 예에 따르면, 하나 이상의 이미지 센서(예: 전면 센서 또는 후면 센서), 렌즈(미도시), ISP(image signal processor, 미도시) 또는 플래쉬 (flash, 미도시)(예: LED 또는 xenon lamp)를 포함할 수 있다. 실시 예에 따라, 카메라 모듈(880)은 페어링 모듈(870) 및/혹은 프로세서(820)에 의해 자동으로 구동되어, 정지 영상 및/혹은 동영상을 촬영할 수 있다.The camera module 880 is a device capable of capturing a still image and a moving image. According to an embodiment, the camera module 880 may include one or more image sensors (e.g., a front sensor or a rear sensor), a lens (not shown), an image signal processor Or a flash (not shown), such as a LED or xenon lamp. In accordance with an embodiment, the camera module 880 may be automatically driven by the pairing module 870 and / or the processor 820 to capture still images and / or motion pictures.

페어링 모듈(870)은 다른 구성요소들(예: 프로세서(820), 메모리(830), 입출력 인터페이스(840), 또는 통신 인터페이스(860) 등)로부터 획득된 정보 중 적어도 일부를 처리하고, 처리와 관련된 적어도 하나의 정보를 다양한 방법으로 사용자에게 제공할 수 있다. 예를 들어, 페어링 모듈(870)은 프로세서(820)를 이용하여 또는 이와는 독립적으로, 전자 장치(200)가 조명 장치(210)와 페어링 절차를 수행하여 통신이 가능하도록 제어할 수 있다. 본 발명의 실시 예에 따른 페어링 모듈(870)은 카메라 모듈(880)의 구동을 제어하여 조명 장치를 포함하는 정지 영상 및/혹은 동영상을 촬영하고, 촬영된 정지 영상 및/혹은 동영상으로부터 조명 장치의 색상을 나타내는 RGB 데이터 혹은 조명 장치의 출력 주기를 나타내는 주기 데이터를 획득할 수 있다. 더하여, 페어링 모듈(870)은 통신 인터페이스(860)와 연동하여, 정지 영상 및/혹은 동영상으로부터 획득된 RGB 데이터 혹은 주기 데이터를 조명 장치(210)로 전송할 수 있다. 더하여, 페어링 모듈(870)은 통신 인터페이스(860)를 통해 조명 장치(210)로부터 페어링 응답 메시지의 수신을 감지할 수 있고, 페어링 응답 메시지의 수신이 감지될 시, RGB 데이터 혹은 주기 데이터를 기반으로 TK 값을 생성할 수 있다. 더하여, 페어링 모듈(870)은 통신 인터페이스(860)와 연동하여, TK 값을 기반으로 STK 및 LTK를 생성하여 페어링을 위한 인증 및 링크 계층 암호화를 수행할 수 있다. 후술하는 도 9를 통해 페어링 모듈(870)에 대해 추가적인 설명을 개시한다.Pairing module 870 processes at least some of the information obtained from other components (e.g., processor 820, memory 830, input / output interface 840, or communication interface 860) At least one related information can be provided to the user in various ways. For example, the pairing module 870 may control the electronic device 200 to communicate with the lighting device 210 by using the processor 820, or independently, by performing a pairing procedure with the lighting device 210. The pairing module 870 according to the embodiment of the present invention controls the driving of the camera module 880 to photograph still images and / or moving images including the illumination device, and displays the still images and / RGB data representing the color or period data representing the output period of the lighting apparatus can be obtained. In addition, the pairing module 870 can transmit the RGB data or the period data obtained from the still image and / or moving image to the lighting device 210 in cooperation with the communication interface 860. In addition, the pairing module 870 can sense the reception of the pairing response message from the lighting device 210 via the communication interface 860 and, upon detecting the reception of the pairing response message, TK values can be generated. In addition, the pairing module 870 can generate STK and LTK based on the TK value in cooperation with the communication interface 860, and perform authentication and link layer encryption for pairing. A further description of the pairing module 870 is given below with reference to FIG.

도 9는 본 발명의 실시 예에 따른 전자 장치(200)에 포함된 페어링 모듈(870)의 블럭 구성을 도시하고 있다. 도 9를 참조하면, 페어링 모듈(870)은 카메라 제어 모듈(910), TK 획득 모듈(920) 및 송수신 모듈(930)을 포함할 수 있다.9 shows a block diagram of a pairing module 870 included in an electronic device 200 according to an embodiment of the present invention. 9, the pairing module 870 may include a camera control module 910, a TK acquisition module 920, and a transceiver module 930.

카메라 제어 모듈(910)은 다른 구성요소들(예: 프로세서(820), 메모리(830), 입출력 인터페이스(340), 또는 통신 인터페이스(860) 등)로부터 획득된 정보를 기반으로 블루투스 페어링 이벤트가 발생되는지 여부를 감지할 수 있다. 카메라 제어 모듈(910)은 블루투스 페어링 이벤트 발생이 감지될 시, 카메라 모듈(880) 구동시켜 조명 장치를 촬영하기 위한 기능을 제어할 수 있다.Camera control module 910 may generate a Bluetooth pairing event based on information obtained from other components (e.g., processor 820, memory 830, input / output interface 340, or communication interface 860) Or not. The camera control module 910 may control the function of photographing the lighting device by driving the camera module 880 when the occurrence of the Bluetooth pairing event is detected.

TK 획득 모듈(920)은 카메라 모듈(880)을 통해 촬영된 정지 영상 혹은 동영상으로부터 RGB 데이터 혹은 주기 데이터를 획득할 수 있고, 획득된 RGB 데이터 혹은 주기 데이터를 기반으로 TK 값을 생성할 수 있다. 예를 들어, TK 획득 모듈(920)은 주기 데이터에 미리 설정된 값을 곱하여, 6자리의 TK 값을 생성할 수 있다. 다른 예로, TK 획득 모듈(920)은 컬러 양자화 기법을 이용하여 RGB 데이터를 6자리의 TK 값으로 변경할 수 있다. The TK acquisition module 920 can acquire RGB data or period data from the still image or moving image captured through the camera module 880 and generate TK values based on the obtained RGB data or period data. For example, the TK acquisition module 920 may multiply the period data by a preset value to generate a six digit TK value. As another example, the TK acquisition module 920 may change the RGB data to a six digit TK value using a color quantization technique.

송수신 모듈(930)은 전자 장치(200)와 조명 장치(210)의 페어링을 위한 메시지를 송수신 처리할 수 있다. 예를 들어, 송수신 모듈(930)은 TK 획득 모듈(920)에서 획득된 RGB 데이터 혹은 주기 데이터를 포함하는 광고 메시지를 생성하고, 통신 인터페이스(860)와 연동하여 광고 메시지를 광고 채널을 통해 전송되도록 제어할 수 있다. 더하여, 송수신 모듈(930)은 도 4에 도시된 바와 같은 페어링 요청 신호를 전송하고, 페어링 응답 신호를 수신하도록 제어할 수 있다. The transmission / reception module 930 can transmit / receive a message for pairing of the electronic device 200 and the lighting device 210. [ For example, the transmission / reception module 930 generates an advertisement message including the RGB data or the period data obtained from the TK acquisition module 920, and transmits the advertisement message through the advertisement channel in cooperation with the communication interface 860 Can be controlled. In addition, the transmission / reception module 930 can control to transmit a pairing request signal as shown in FIG. 4 and to receive a pairing response signal.

추가적으로, 페어링 모듈(870)은 전자 장치(200)가 도 3a 및 도 6에서 설명한 기능들을 수행하도록 제어 및 처리할 수 있다.In addition, the pairing module 870 can control and process the electronic device 200 to perform the functions described in Figures 3A and 6.

상술한 도 8 및 도 9의 페어링 모듈(870)은, 실시 예에 따라 프로세서(820)에 포함될 수 있다.The above-described pairing module 870 of FIGS. 8 and 9 may be included in the processor 820 according to an embodiment.

도 10은 본 발명의 실시 예에 따른 조명 장치의 블럭 구성을 도시하고 있다.Fig. 10 shows a block configuration of a lighting apparatus according to an embodiment of the present invention.

도 10은 본 발명의 다양한 실시 예에 따른, 조명 장치(210)의 블럭 구성을 도시한다. 도 10을 참조하면, 상기 조명 장치(210)는 버스(1010), 프로세서(1020), 메모리(1030), 페어링 모듈(1040), 통신 인터페이스(1050) 및 조명 출력 모듈(1060)을 포함할 수 있다. 10 illustrates a block diagram of a lighting device 210, in accordance with various embodiments of the present invention. 10, the lighting device 210 may include a bus 1010, a processor 1020, a memory 1030, a pairing module 1040, a communication interface 1050 and a light output module 1060 have.

버스(1010)는 전술한 구성요소들을 서로 연결하고, 전술한 구성요소들 간의 통신(예: 제어 메시지)을 전달하는 회로일 수 있다.The bus 1010 may be a circuit that interconnects the components described above and communicates (e.g., control messages) between the components described above.

프로세서(1020)는, 예를 들면, 버스(1010)를 통해 전술한 다른 구성요소들(예: 메모리(1030), 통신 인터페이스(1050), 또는 페어링 모듈(1040) 등)로부터 명령을 수신하여, 수신된 명령을 해독하고, 해독된 명령에 따른 연산이나 데이터 처리를 실행할 수 있다. Processor 1020 may receive instructions from other components (e.g., memory 1030, communication interface 1050, or pairing module 1040, etc.) described above via bus 1010, It is possible to decode the received command and to execute an operation or data processing according to the decoded command.

메모리(1030)는, 프로세서(1020) 또는 다른 구성요소들(예: 상기 입출력 인터페이스(840), 디스플레이(850), 통신 인터페이스(1050), 또는 페어링 모듈(1040) 등)로부터 수신되거나 프로세서(1020) 또는 다른 구성요소들에 의해 생성된 명령 또는 데이터를 저장할 수 있다. 예를 들면, 메모리(1030)는, 미도시되었으나, 커널, 미들웨어, 어플리케이션 프로그래밍 인터페이스(API: application programming interface) 또는 어플리케이션 등의 프로그래밍 모듈들을 포함할 수 있다. 전술한 각각의 프로그래밍 모듈들은 소프트웨어, 펌웨어, 하드웨어 또는 이들 중 적어도 둘 이상의 조합으로 구성될 수 있다. Memory 1030 may be received from processor 1020 or other components (e.g., input / output interface 840, display 850, communication interface 1050, or pairing module 1040) ) Or may store instructions or data generated by other components. For example, memory 1030 may include programming modules such as a kernel, middleware, application programming interface (API), or application, although it is not shown. Each of the above-described programming modules may be composed of software, firmware, hardware, or a combination of at least two of them.

다양한 실시예에 따르면, 어플리케이션(미도시)은 조명 장치의 온/오프, 밝기, 출력 주기, 색상 등을 제어하는 어플리케이션을 포함할 수 있다. 추가적으로 또는 대체적으로, 어플리케이션은 조명 장치(210)와 전자 장치(200) 사이의 정보 교환과 관련된 어플리케이션일 수 있다. 다양한 실시예에 따르면, 어플리케이션은 조명 장치의 속성(예: 조명 장치의 타입)에 따라 지정된 어플리케이션을 포함할 수 있다. According to various embodiments, an application (not shown) may include an application that controls on / off, brightness, output period, color, etc. of the lighting device. Additionally or alternatively, the application may be an application related to the exchange of information between the lighting device 210 and the electronic device 200. According to various embodiments, an application may include an application specified in accordance with attributes of the lighting device (e.g., type of lighting device).

통신 인터페이스(1050)는 조명 장치(210)와 외부 장치(예: 전자 장치(200), 또는 서버) 간의 통신을 연결할 수 있다. 예를 들면, 통신 인터페이스(1050)는 무선 통신 또는 유선 통신을 통해서 네트워크에 연결되어 외부 장치와 통신할 수 있다. 무선 통신은, 예를 들어, Wifi(wireless fidelity), BT(Bluetooth), NFC(near field communication), GPS(global positioning system) 또는 cellular 통신(예: LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro 또는 GSM 등) 중 적어도 하나를 포함할 수 있다. 유선 통신은, 예를 들어, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard 232) 또는 POTS(plain old telephone service) 중 적어도 하나를 포함할 수 있다. 예를 들어, 통신 인터페이스(1050)는 블루투스 통신을 이용하여 전자 장치(200)와 통신할 수 있다.Communication interface 1050 can couple communications between lighting device 210 and an external device (e.g., electronic device 200, or server). For example, the communication interface 1050 may be connected to a network via wireless or wired communication to communicate with an external device. The wireless communication may be, for example, wireless fidelity (WFI), Bluetooth (BT), near field communication (NFC), global positioning system (GPS), or cellular communication (e.g., LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro or GSM, etc.). The wired communication may include at least one of, for example, a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard 232 (RS-232) or a plain old telephone service (POTS). For example, the communication interface 1050 may communicate with the electronic device 200 using Bluetooth communication.

페어링 모듈(1040)은 다른 구성요소들(예: 프로세서(1020), 메모리(1030), 또는 통신 인터페이스(1050) 등)로부터 획득된 정보 중 적어도 일부를 처리하고, 처리와 관련된 적어도 하나의 정보를 다양한 방법으로 사용자에게 제공할 수 있다. 예를 들어, 페어링 모듈(1040)은 프로세서(1020)를 이용하여 또는 이와는 독립적으로, 전자 장치(200)와 페어링 절차를 수행하여 통신이 가능하도록 제어할 수 있다. 본 발명의 실시 예에 따른 페어링 모듈(1040)은 맥 주소를 기반으로 식별 데이터(예: RGB 값 혹은 주기 값)을 생성하고, 조명 출력 모듈(1060)과 연동하여 식별 데이터를 기반으로 조명 출력 기능을 수행할 수 있다. 더하여, 페어링 모듈(1040)은 전자 장치(200)로부터 수신된 식별 데이터와 맥주소를 기반으로 생성된 식별 데이터를 비교하여 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신인지 여부를 판단할 수 있다. 페어링 모듈(1040)은 전자 장치(200)가 페어링하고자 하는 조명 장치가 자신이라고 판단된 경우, 전자 장치(200)로 도 4에 도시된 바와 같은 페이징 응답 신호를 전송하여, 패스키 앤트리 모드를 이용하여 페어링 절차를 수행할 수 있다. 더하여, 페어링 모듈(1040)은 식별 데이터를 기반으로 TK 값을 생성하고, 생성된 TK 값을 기반으로 STK 및 LTK를 생성하고, 인증 및 링크 계층 암호화를 수행할 수 있다.The pairing module 1040 processes at least some of the information obtained from other components (e.g., processor 1020, memory 1030, or communication interface 1050), and provides at least one information And can be provided to the user in various ways. For example, the pairing module 1040 may control to enable communication by performing a pairing procedure with the electronic device 200 using the processor 1020 or independently thereof. The pairing module 1040 according to the embodiment of the present invention generates identification data (e.g., an RGB value or period value) based on the MAC address, and operates in conjunction with the illumination output module 1060 to output illumination Can be performed. In addition, the pairing module 1040 compares the identification data received from the electronic device 200 with the identification data generated based on the MAC address to determine whether the lighting device to which the electronic device 200 wants to pair is the self have. The pairing module 1040 transmits a paging response signal as shown in FIG. 4 to the electronic device 200 when the electronic device 200 determines that the lighting device to be paired is itself, So that the pairing procedure can be performed. In addition, the pairing module 1040 may generate a TK value based on the identification data, generate STK and LTK based on the generated TK value, and perform authentication and link layer encryption.

조명 출력 모듈(1060)은 프로세서(1020) 혹은 페어링 모듈(1040)의 제어에 의해 조명을 출력한다. 예를 들어, 조명 출력 모듈(1060)은 페어링 모듈(1040)의 제어에 의해 RGB 값에 대응하는 색상의 조명을 출력할 수 있다. 다른 예로, 조명 출력 모듈(1060)은 페어링 모듈(1040)의 제어에 따라 미리 설정된 시간 동안 주기 값에 대응하는 횟수만큼 조명이 온/오프되도록 제어할 수 있다. 더하여, 조명 출력 모듈(1060)은 적어도 하나의 색상 계열(예: R계열, G계열, B 계열)에 대한 필터링을 수행하는 필터를 포함할 수 있다.The illumination output module 1060 outputs illumination by the control of the processor 1020 or the pairing module 1040. [ For example, the illumination output module 1060 can output illumination of a color corresponding to the RGB values under the control of the pairing module 1040. As another example, the illumination output module 1060 may control the illumination to be turned on / off a number of times corresponding to the period value for a preset time under the control of the pairing module 1040. In addition, the light output module 1060 may include a filter that performs filtering on at least one color series (e.g., R series, G series, B series).

실시 예에 따라 상술한 도 10의 페어링 모듈(1040) 및 조명 출력 모듈(1060) 중 적어도 하나는 프로세서(1020)에 포함될 수 있다.At least one of the pairing module 1040 and the light output module 1060 of FIG. 10 described above in accordance with the embodiment may be included in the processor 1020. FIG.

상술한 예시들에서는 조명 장치의 식별 데이터로써, 조명 색상 값과 조명 출력 주기 중 어느 하나를 이용하였으나, 다른 실시 예에 따라 조명 장치의 식별 데이터로 조명 색상 값과 조명 출력 주기를 함께 이용할 수도 있다.In the above-described examples, one of the illumination color value and the illumination output period is used as the identification data of the illumination device, but according to another embodiment, the illumination color value and the illumination output period may be used together as identification data of the illumination device.

이상과 같이 본 발명은 비록 한정된 실시 예와 도면에 의해 설명되었으나 본 발명은 상술한 실시 예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, It is possible.

본 발명의 실시 예에 따른 동작들은 단일의 제어부에 의해 그 동작이 구현될 수 있을 것이다. 이러한 경우 다양한 컴퓨터로 구현되는 동작을 수행하기 위한 프로그램 명령이 컴퓨터 판독 가능 매체에 기록될 수 있다. 컴퓨터 판단 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM이나 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 본 발명에서 설명된 기지국 또는 릴레이의 전부 또는 일부가 컴퓨터 프로그램으로 구현된 경우 컴퓨터 프로그램을 저장한 컴퓨터 판독 가능 기록 매체도 본 발명에 포함된다. 그러므로 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 할 것이다.Operations according to embodiments of the present invention may be implemented by a single controller. In this case, program instructions for performing various computer-implemented operations may be recorded on a computer-readable medium. The computer-determinable medium may include program instructions, data files, data structures, etc., alone or in combination. The program instructions may be those specially designed and constructed for the present invention or may be available to those skilled in the art. Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tape, optical recording media such as CD-ROMs or DVDs, magneto-optical media such as floppy disks and ROMs, , Random access memory (RAM), flash memory, and the like. Examples of program instructions include machine language code such as those produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. A computer readable recording medium storing a computer program is also included in the present invention when all or a part of the base station or relay described in the present invention is implemented as a computer program. The scope of the present invention should, therefore, be determined not only by the details of the embodiments described, but also by the appended claims and their equivalents.

Claims (20)

전자 장치의 방법에 있어서,
조명 장치를 촬영하여 이미지를 획득하는 과정과,
상기 이미지로부터 상기 조명 장치에 대한 식별 데이터를 획득하는 과정과,
상기 식별 데이터를 상기 조명 장치로 전송하여 상기 조명 장치와 페어링을 수행하는 과정을 포함하는 방법.
A method of an electronic device,
Capturing an image of the illumination device to obtain an image;
Obtaining identification data for the illumination device from the image;
And transmitting the identification data to the illumination device to perform the pairing with the illumination device.
제 1항에 있어서,
상기 이미지로부터 상기 조명 장치에 대한 식별 데이터를 획득하는 과정은,
상기 이미지로부터 상기 조명 장치의 조명 색상 값 및 조명 출력 주기 값 중 적어도 하나를 획득하는 과정을 포함하며,
상기 조명 출력 주기 값은, 미리 설정된 시간 동안 조명의 출력이 온/오프되는 횟수를 나타내며,
상기 조명 색상 값은, 조명의 RGB(Red Green Blue)값을 나타내는 방법.
The method according to claim 1,
Wherein the step of acquiring identification data for the illumination device from the image comprises:
Obtaining at least one of an illumination color value and an illumination output period value of the illumination device from the image,
The illumination output period value indicates the number of times the illumination output is turned on / off for a preset time,
Wherein the illumination color value represents an RGB (Red Green Blue) value of illumination.
제 1항에 있어서,
상기 식별 데이터를 상기 조명 장치로 전송하여 상기 조명 장치와 페어링을 수행하는 과정은,
상기 식별 데이터를 상기 조명 장치를 포함하는 적어도 하나의 조명 장치로 전송하는 과정과,
상기 조명 장치로부터 페어링을 위한 신호를 수신하는 과정과,
상기 페어링을 위한 신호 수신 후, 상기 식별 데이터를 기반으로 임시 키를 결정하는 과정과,
상기 임시 키를 기반으로 상기 조명 장치와 인증 및 링크 계층 암호화 중 적어도 하나를 수행하는 과정을 포함하는 방법.
The method according to claim 1,
And transmitting the identification data to the illumination device and performing the pairing with the illumination device,
Transmitting the identification data to at least one lighting device including the lighting device;
Receiving a signal for pairing from the lighting device;
Determining a temporary key based on the identification data after receiving a signal for the pairing;
And performing at least one of authentication and link layer encryption with the lighting device based on the temporary key.
제 3항에 있어서,
상기 페어링을 위한 신호는, 키보드 입력 및 디스플레이가 가능함을 나타내는 정보, 및 중간자 공격에 대한 보호가 가능함을 나타내는 정보를 포함하는 페어링 응답 신호인 방법.
The method of claim 3,
Wherein the signal for pairing is a pairing response signal comprising information indicating that keyboard input and display is possible and information indicating that protection against man-in-the-middle attack is possible.
제 1항에 있어서,
페어링 이벤트를 감지하는 과정과,
페어링 요청 신호를 전송하는 과정과,
카메라를 자동으로 구동하는 과정을 더 포함하는 방법.
The method according to claim 1,
Detecting a pairing event,
Transmitting a pairing request signal,
Further comprising the step of automatically driving the camera.
조명 장치의 방법에 있어서,
상기 조명 장치의 제1 식별 데이터를 기반으로 조명을 출력하는 과정과,
전자 장치로부터 제2 식별 데이터를 수신하는 과정과,
상기 제1 식별 데이터와 상기 제2 식별 데이터를 비교하여 상기 전자 장치와의 페어링 여부를 결정하는 과정과,
상기 전자 장치와의 페어링이 결정될 경우, 상기 전자 장치와 페어링을 수행하는 과정을 포함하는 방법.
A method of a lighting device,
Outputting illumination based on the first identification data of the illumination device;
Receiving second identification data from an electronic device;
Comparing the first identification data with the second identification data to determine whether to pair with the electronic device;
And performing a pairing with the electronic device when the pairing with the electronic device is determined.
제 6항에 있어서,
상기 조명 장치의 제1 식별 데이터를 기반으로 조명을 출력하는 과정은,
상기 조명 장치의 맥 주소를 기반으로 조명 색상 값 및 조명 출력 주기 값 중 적어도 하나를 결정하는 과정과,
상기 결정된 조명 색상 값과 조명 출력 주기 값 중 적어도 하나를 기반으로 조명을 출력하는 과정을 포함하며,
상기 조명 출력 주기 값은, 미리 설정된 시간 동안 조명의 출력이 온/오프되는 횟수를 나타내며,
상기 조명 색상 값은, 조명의 RGB(Red Green Blue)값을 나타내는 방법.
The method according to claim 6,
Wherein the step of outputting illumination based on the first identification data of the illumination device comprises:
Determining at least one of an illumination color value and an illumination output period value based on a MAC address of the illumination device;
And outputting illumination based on at least one of the determined illumination color value and the illumination output period value,
The illumination output period value indicates the number of times the illumination output is turned on / off for a preset time,
Wherein the illumination color value represents an RGB (Red Green Blue) value of illumination.
제 6항에 있어서,
상기 전자 장치와 페어링을 수행하는 과정은,
상기 전자 장치로 페어링을 위한 신호를 전송하는 과정과,
상기 페어링을 위한 신호 전송 후, 상기 제1 식별 데이터를 기반으로 임시 키를 결정하는 과정과,
상기 임시 키를 기반으로 상기 전자 장치와 인증 및 링크 계층 암호화 중 적어도 하나를 수행하는 과정을 포함하며,
상기 페어링을 위한 신호는, 키보드 입력 및 디스플레이가 가능함을 나타내는 정보, 및 중간자 공격에 대한 보호가 가능함을 나타내는 정보를 포함하는 페어링 응답 신호인 방법.

The method according to claim 6,
And performing a pairing process with the electronic device,
Transmitting a signal for pairing to the electronic device;
Determining a temporary key based on the first identification data after signaling for the pairing;
And performing at least one of authentication and link layer encryption with the electronic device based on the temporary key,
Wherein the signal for pairing is a pairing response signal comprising information indicating that keyboard input and display is possible and information indicating that protection against man-in-the-middle attack is possible.

제 6항에 있어서,
상기 전자 장치로부터 페어링 요청 신호를 수신하는 과정을 더 포함하는 방법.
The method according to claim 6,
And receiving a pairing request signal from the electronic device.
제 6항에 있어서,
상기 제1 식별 데이터와 상기 제2 식별 데이터를 비교하여 상기 전자 장치와의 페어링 여부를 결정하는 과정은,
상기 제1 식별 데이터와 상기 제2 식별 데이터가 일치하는 경우, 상기 전자 장치와의 페어링을 결정하는 과정을 포함하며,
상기 제1 식별 데이터와 상기 제2 식별 데이터가 불일치하는 경우, 상기 전자 장치와의 페어링을 수행하지 않음을 결정하는 과정을 포함하는 방법.
The method according to claim 6,
Comparing the first identification data with the second identification data to determine whether to pair with the electronic device,
And determining a pairing with the electronic device if the first identification data and the second identification data match,
Determining to not perform the pairing with the electronic device if the first identification data and the second identification data do not match.
전자 장치에 있어서,
조명 장치와 페어링을 위한 신호를 송수신하는 통신 모듈;
조명 장치를 촬영하여 이미지를 획득하는 카메라 모듈; 및
상기 이미지로부터 상기 조명 장치에 대한 식별 데이터를 획득하고, 상기 식별 데이터를 상기 조명 장치로 전송하여 상기 조명 장치와 페어링을 수행하는 프로세서를 포함하는 장치.
In an electronic device,
A communication module for transmitting and receiving a signal for pairing with the lighting device;
A camera module for photographing the illumination device to acquire an image; And
And a processor for obtaining identification data for the illumination device from the image and transmitting the identification data to the illumination device to perform the pairing with the illumination device.
제 11항에 있어서,
상기 프로세서는, 상기 촬영된 이미지로부터 상기 조명 장치의 조명 색상 값 및 조명 출력 주기 값 중 적어도 하나를 획득하며,
상기 조명 출력 주기 값은, 미리 설정된 시간 동안 조명의 출력이 온/오프되는 횟수를 나타내며,
상기 조명 색상 값은, 조명의 RGB(Red Green Blue)값을 나타내는 장치.
12. The method of claim 11,
Wherein the processor obtains from the photographed image at least one of an illumination color value and a light output cycle value of the illumination device,
The illumination output period value indicates the number of times the illumination output is turned on / off for a preset time,
Wherein the illumination color value represents an RGB (Red Green Blue) value of illumination.
제 11항에 있어서,
상기 프로세서는, 상기 식별 데이터를 상기 조명 장치를 포함하는 적어도 하나의 조명 장치로 전송하고, 상기 조명 장치로부터 페어링을 위한 신호를 수신하고, 상기 페어링을 위한 신호 수신 후, 상기 식별 데이터를 기반으로 임시 키를 생성하고, 상기 임시 키를 기반으로 상기 조명 장치와 인증 및 링크 계층 암호화 중 적어도 하나를 수행하는 장치.
12. The method of claim 11,
Wherein the processor is configured to transmit the identification data to at least one lighting device that includes the lighting device, receive a signal for pairing from the lighting device, and, after receiving the signal for the pairing, And performs at least one of authentication and link layer encryption with the lighting device based on the temporary key.
제 13항에 있어서,
상기 페어링을 위한 신호는, 키보드 입력 및 디스플레이가 가능함을 나타내는 정보, 및 중간자 공격에 대한 보호가 가능함을 나타내는 정보를 포함하는 페어링 응답 신호인 장치.
14. The method of claim 13,
Wherein the signal for the pairing is a pairing response signal comprising information indicating that keyboard input and display is possible and information indicating that protection against man-in-the-middle attack is possible.
제 11항에 있어서,
상기 프로세서는, 페어링 이벤트를 감지하고, 상기 페어링 이벤트가 감지될 경우, 페어링 요청 신호를 전송하고, 카메라를 자동으로 구동하는 장치.
12. The method of claim 11,
Wherein the processor senses a pairing event, transmits a pairing request signal when the pairing event is detected, and automatically drives the camera.
조명 장치에 있어서,
전자 장치와 페어링을 위한 신호를 송수신하는 통신 모듈;
조명 장치의 제1 식별 데이터를 기반으로 조명을 출력하는 조명 출력 모듈; 및
상기 통신 모듈에 의해 상기 전자 장치로부터 수신되는 제2 식별 데이터와 상기 제1 식별 데이터를 비교하여 상기 전자 장치와의 페어링 여부를 결정하고, 상기 전자 장치와의 페어링이 결정될 경우, 상기 전자 장치와 페어링을 수행하는 프로세서를 포함하는 장치.
In a lighting device,
A communication module for transmitting and receiving a signal for pairing with an electronic device;
A lighting output module for outputting illumination based on the first identification data of the lighting device; And
Wherein the communication module compares second identification data received from the electronic device with the first identification data to determine whether to pair with the electronic device, and when the pairing with the electronic device is determined, Gt; a < / RTI >
제 16항에 있어서,
상기 프로세서는, 상기 조명 장치의 맥 주소를 기반으로 조명 색상 값 및 조명 출력 주기 값 중 적어도 하나를 결정하고, 상기 결정된 조명 색상 값과 조명 출력 주기 값 중 적어도 하나를 기반으로 조명을 출력하며,
상기 조명 출력 주기 값은, 미리 설정된 시간 동안 조명의 출력이 온/오프되는 횟수를 나타내며,
상기 조명 색상 값은, 조명의 RGB(Red Green Blue)값을 나타내는 장치.
17. The method of claim 16,
Wherein the processor is configured to determine at least one of an illumination color value and an illumination output period value based on a MAC address of the illumination device and output illumination based on at least one of the determined illumination color value and an illumination output period value,
The illumination output period value indicates the number of times the illumination output is turned on / off for a preset time,
Wherein the illumination color value represents an RGB (Red Green Blue) value of illumination.
제 16항에 있어서,
상기 프로세서는, 상기 전자 장치로 페어링을 위한 신호를 전송하고, 상기 페어링을 위한 신호 전송 후, 상기 제1 식별 데이터를 기반으로 임시 키를 생성하고, 상기 임시 키를 기반으로 상기 전자 장치와 인증 및 링크 계층 암호화 중 적어도 하나를 수행하며,
상기 페어링을 위한 신호는, 키보드 입력 및 디스플레이가 가능함을 나타내는 정보, 및 중간자 공격에 대한 보호가 가능함을 나타내는 정보를 포함하는 페어링 응답 신호인 장치.
17. The method of claim 16,
Wherein the processor is further configured to send a signal for pairing to the electronic device, generate a temporary key based on the first identification data after signaling for the pairing, Link layer encryption,
Wherein the signal for the pairing is a pairing response signal comprising information indicating that keyboard input and display is possible and information indicating that protection against man-in-the-middle attack is possible.
제 16항에 있어서,
상기 프로세서는, 상기 전자 장치로부터 페어링 요청 신호를 수신하는 장치.
17. The method of claim 16,
Wherein the processor receives a pairing request signal from the electronic device.
제 16항에 있어서,
상기 프로세서는, 상기 제1 식별 데이터와 상기 제2 식별 데이터가 일치하는 경우, 상기 전자 장치와의 페어링을 결정하고, 상기 제1 식별 데이터와 상기 제2 식별 데이터가 불일치하는 경우, 상기 전자 장치와의 페어링을 수행하지 않음을 결정하는 장치.
17. The method of claim 16,
Wherein the processor determines a pairing with the electronic device when the first identification data and the second identification data match, and when the first identification data and the second identification data do not match, Lt; RTI ID = 0.0 > paired < / RTI >
KR1020150089064A 2014-06-24 2015-06-23 Apparatus and method for pairing between an electronic device with a lighting device KR102325323B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/749,135 US9900091B2 (en) 2014-06-24 2015-06-24 Method and apparatus for pairing electronic device and lighting device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20140077297 2014-06-24
KR1020140077297 2014-06-24

Publications (2)

Publication Number Publication Date
KR20160000437A true KR20160000437A (en) 2016-01-04
KR102325323B1 KR102325323B1 (en) 2021-11-12

Family

ID=55164314

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020150089064A KR102325323B1 (en) 2014-06-24 2015-06-23 Apparatus and method for pairing between an electronic device with a lighting device

Country Status (1)

Country Link
KR (1) KR102325323B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102151354B1 (en) * 2019-07-08 2020-09-03 주식회사 지니로봇 System and method for identifying a bluetooth device using colors displayed through a light emitting diode
US11044414B2 (en) 2016-11-29 2021-06-22 Samsung Electronics Co., Ltd. Electronic device and control method therefor
CN113691975A (en) * 2021-08-24 2021-11-23 公安部第三研究所 Method, device, processor and computer readable storage medium for realizing secure pairing stealth connection for Bluetooth equipment
FR3117297A1 (en) * 2020-12-08 2022-06-10 Otodo Method for assisting the pairing of a domestic object connected with a centralized unit
WO2024049088A1 (en) * 2022-08-29 2024-03-07 삼성전자 주식회사 Electronic device for providing media-based lighting control services, operation method therefor, and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230077525A (en) * 2021-11-25 2023-06-01 엘지이노텍 주식회사 Pairing Method between sensor and gateway
WO2024071639A1 (en) * 2022-09-28 2024-04-04 삼성전자주식회사 Flicker correction method and electronic device therefor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013038048A (en) * 2011-08-11 2013-02-21 Mega Chips Corp Lighting system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013038048A (en) * 2011-08-11 2013-02-21 Mega Chips Corp Lighting system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11044414B2 (en) 2016-11-29 2021-06-22 Samsung Electronics Co., Ltd. Electronic device and control method therefor
KR102151354B1 (en) * 2019-07-08 2020-09-03 주식회사 지니로봇 System and method for identifying a bluetooth device using colors displayed through a light emitting diode
FR3117297A1 (en) * 2020-12-08 2022-06-10 Otodo Method for assisting the pairing of a domestic object connected with a centralized unit
CN113691975A (en) * 2021-08-24 2021-11-23 公安部第三研究所 Method, device, processor and computer readable storage medium for realizing secure pairing stealth connection for Bluetooth equipment
CN113691975B (en) * 2021-08-24 2024-04-09 公安部第三研究所 Method, device, processor and computer readable storage medium for realizing secure pairing stealth connection for Bluetooth equipment
WO2024049088A1 (en) * 2022-08-29 2024-03-07 삼성전자 주식회사 Electronic device for providing media-based lighting control services, operation method therefor, and storage medium

Also Published As

Publication number Publication date
KR102325323B1 (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US9900091B2 (en) Method and apparatus for pairing electronic device and lighting device
KR102325323B1 (en) Apparatus and method for pairing between an electronic device with a lighting device
CN109644229B (en) Method for controlling camera and electronic device thereof
US10075235B2 (en) Method and apparatus for data transmission
US10679053B2 (en) Method and device for recognizing biometric information
KR102281019B1 (en) Electronic device and method for processing data in electronic device
KR102493721B1 (en) Electronic device and method for establishing a connection with a external electronic device
KR102300583B1 (en) A service providing method using a beacon and electronic apparatus thereof
KR102300098B1 (en) Electronic device for connecting communication and method for connecting communication
EP3105919B1 (en) Photographing method of an electronic device and the electronic device thereof
US10003944B2 (en) Electronic device and method for providing emergency video call service
KR102469426B1 (en) Image processing apparatus and operating method thereof
KR20150105802A (en) Beacon signal control method of electronic apparatus and electronic apparatus thereof
KR102267713B1 (en) Operating Method of an electronic device related to Controlling of Transmission Power and Device therefor
US20160277878A1 (en) Method for communicating data and electronic device thereof
KR20160031706A (en) Method for enhancing noise characteristics of image and an electronic device thereof
US10650596B2 (en) Electronic device for providing VR image based on polyhedron and image providing method thereof
CN110462617B (en) Electronic device and method for authenticating biometric data with multiple cameras
US20170255822A1 (en) Method and apparatus for recognizing iris
KR20160055534A (en) Method for content adaptation based on ambient environment in electronic device and the electronic device thereof
CN113890989A (en) Shooting method and electronic device
KR20170000618A (en) Electronic apparatus and method to control display of panorama image thereof
KR102656557B1 (en) Image processing method and electronic device supporting the same
KR20160070511A (en) Electornic device for connecting with other electronice devce and method for controlling thereof
US9749464B2 (en) Method for providing information and an electronic device thereof

Legal Events

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