KR101742690B1 - Service Discovery Protocol Probing Apparatus and Method for Smart Device - Google Patents

Service Discovery Protocol Probing Apparatus and Method for Smart Device Download PDF

Info

Publication number
KR101742690B1
KR101742690B1 KR1020160108584A KR20160108584A KR101742690B1 KR 101742690 B1 KR101742690 B1 KR 101742690B1 KR 1020160108584 A KR1020160108584 A KR 1020160108584A KR 20160108584 A KR20160108584 A KR 20160108584A KR 101742690 B1 KR101742690 B1 KR 101742690B1
Authority
KR
South Korea
Prior art keywords
message
external device
service discovery
probing
discovery protocol
Prior art date
Application number
KR1020160108584A
Other languages
Korean (ko)
Inventor
이동만
손희석
Original Assignee
한국과학기술원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 한국과학기술원 filed Critical 한국과학기술원
Priority to KR1020160108584A priority Critical patent/KR101742690B1/en
Priority to PCT/KR2016/010865 priority patent/WO2018038314A1/en
Application granted granted Critical
Publication of KR101742690B1 publication Critical patent/KR101742690B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F17/30002
    • H04L67/16
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

본 발명은 스마트기기의 서비스 검색 프로토콜 판별 장치 및 방법에 관한 것이다.
본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 장치는 서비스 검색 프로토콜(Service Discovery Protocol, SDP)에 관련된 정보를 저장하는 데이터베이스(Database), 프로빙 메시지(Probing Message)를 구성하는 메시지 구성부, 상기 프로빙 메시지를 외부기기로 전송하고, 상기 외부기기로부터 상기 프로빙 메시지에 대응하는 리턴 메시지(Return Message)를 수신하는 메시지 송수신부 및 상기 메시지 송수신부가 수신한 상기 리턴 메시지를 분석한 정보를 상기 데이터베이스에 저장된 정보와 비교하여 상기 외부기기의 서비스 검색 프로토콜을 판별하는 분석부를 포함할 수 있다.
The present invention relates to an apparatus and method for determining a service discovery protocol of a smart device.
A service discovery protocol distinguishing device of a smart device according to the present invention includes a database for storing information related to a service discovery protocol (SDP), a message configuring unit for configuring a probing message, A message transmission / reception unit for receiving a return message corresponding to the probing message from the external device, and information for analyzing the return message received by the message transmission / reception unit, And an analyzer for comparing the service discovery protocol of the external device with the service discovery protocol of the external device.

Description

스마트기기의 서비스 검색 프로토콜 판별 장치 및 방법{Service Discovery Protocol Probing Apparatus and Method for Smart Device}Technical Field [0001] The present invention relates to a service discovery protocol for a smart device,

본 발명은 스마트기기의 서비스 검색 프로토콜 판별 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for determining a service discovery protocol of a smart device.

IoT(Internet of Things) 기술의 발달에 따라 다양한 스마트 기기들이 개발되고, 사용되고 있다.Various smart devices have been developed and used according to the development of IoT (Internet of Things) technology.

이로 인해, 스마트 기기간의 커뮤니케이션 기술에 대한 관심이 높아지고 있다.As a result, interest in communication technology between smart devices is increasing.

새로운 환경에서는 서로 다른 종류의 프로토콜로 통신을 수행하는 다양한 종류의 IoT기기(스마트 기기)들이 공존할 수 있다.In a new environment, various kinds of IoT devices (smart devices) performing communication with different kinds of protocols can coexist.

이러한 경우, 스마트 기기들의 통신을 위해서는 서로가 어떤 종류의 프로토콜을 사용하는지 먼저 파악하는 것이 필요할 수 있다.In this case, it may be necessary for smart devices to first know what kind of protocol they are using to communicate with each other.

네트워크 통신에는 스마트 기기들이 서로 어떤 서비스를 제공하는지 알아내기 위한 서비스 검색 프로토콜(service discovery protocol, SDP)이 있다(대한민국 특허출원 10-2002-0075920, 10-2006-0124131 참조)In network communication, there is a service discovery protocol (SDP) for finding out what services are provided by smart devices (Korean Patent Application No. 10-2002-0075920, 10-2006-0124131)

하지만 Open Social과 같은 표준화 인터페이스에서도 구현상의 이질성 문제가 존재할 수 있고, 각종 서비스 검색 프로토콜들(UPnP, Jini, Bluetooth SDP)에서도 서로 다른 다수의 표준들이 함께 개발되고 있어 같은 비호환성 문제가 존재한다.However, there are heterogeneity problems in implementation in standardization interface such as Open Social, and there are the same incompatibility problems because various service detection protocols (UPnP, Jini, Bluetooth SDP) are developed together with many different standards.

본 발명은 주변에 존재하는 스마트 기기들을 알아내고 이들과의 상호작용을 지원할 수 있도록, 이질적인 SDP들을 지원하는 스마트 기기간의 상호 검색을 위한 스마트기기의 서비스 검색 프로토콜 판별 장치 및 방법을 제공하는데 그 목적이 있다.The object of the present invention is to provide an apparatus and method for discriminating service discovery protocols of a smart device for mutual search between smart devices supporting heterogeneous SDPs so as to identify smart devices existing in the vicinity and support interaction with them have.

본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 방법은 외부기기를 검출하는 검출단계, 상기 검출단계에서 검출된 외부기기로 제 1 프로빙 메시지(First Probing Message)를 전송하는 단계, 상기 검출된 외부기기로부터 상기 제 1 프로빙 메시지에 대응하는 제 1 리턴 메시지(First Return Message)를 수신하는 단계, 상기 제 1 리턴 메시지를 데이터베이스(Database)에 미리 저장된 정보와 비교하고 분석하여, 상기 검출된 외부기기의 서비스 검색 프로토콜(Service Discovery Protocol, SDP)의 제 1 후보 범위를 설정하는 단계, 상기 제 1 프로빙 메시지로 상기 검출된 외부기기의 서비스 검색 프로토콜을 특정하지 못한 경우, 상기 검출된 외부기기로 제 2 프로빙 메시지(Second Probing Message)를 전송하는 단계 및 상기 검출된 외부기기로부터 상기 제 2 프로빙 메시지에 대응하는 제 2 리턴 메시지(Second Return Message)를 수신하는 단계, 상기 제 2 리턴 메시지를 상기 데이터베이스에 미리 저장된 정보와 비교하고 분석하여, 상기 검출된 외부기기의 서비스 검색 프로토콜의 제 2 후보 범위를 설정하는 단계를 포함할 수 있다.A method for determining a service discovery protocol of a smart device according to the present invention includes: detecting an external device; transmitting a first probing message to an external device detected in the detecting step; Receiving a first return message corresponding to the first probing message, comparing the first return message with information previously stored in a database, analyzing the first return message, Setting a first candidate range of a protocol (Service Discovery Protocol, SDP), if the detected probing protocol of the external device is not specified by the first probing message, Transmitting a second probing message from the detected external device; Receiving a second return message, comparing and analyzing the second return message with information previously stored in the database, and setting a second candidate range of the detected service discovery protocol of the external device . ≪ / RTI >

또한, 상기 제 2 후보 범위는 상기 제 1 후보 범위 내에서 설정될 수 있다.Also, the second candidate range may be set within the first candidate range.

또한, 상기 제 1 리턴 메시지 및 상기 제 2 리턴 메시지 중 적어도 상기 제 1 리턴 메시지는 에러 메시지(Error Message)일 수 있다.Also, at least the first return message among the first return message and the second return message may be an error message.

또한, 상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 검출된 외부기기의 서비스 검색 프로토콜의 종류를 질의하는 메시지이고, 상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 검출된 외부기기의 서비스 검색 프로토콜의 버전(Version)을 질의하는 메시지일 수 있다.At least one of the first probing message and the second probing message is a message for inquiring the type of a service discovery protocol of the detected external device, And a message querying the version of the service discovery protocol of the detected external device.

또한, 상기 제 2 프로빙 메시지는 상기 제 1 프로빙 메시지로부터 업데이트(Update)된 메시지일 수 있다.Also, the second probing message may be a message updated from the first probing message.

본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 장치는 서비스 검색 프로토콜(Service Discovery Protocol, SDP)에 관련된 정보를 저장하는 데이터베이스(Database), 프로빙 메시지(Probing Message)를 구성하는 메시지 구성부, 상기 프로빙 메시지를 외부기기로 전송하고, 상기 외부기기로부터 상기 프로빙 메시지에 대응하는 리턴 메시지(Return Message)를 수신하는 메시지 송수신부 및 상기 메시지 송수신부가 수신한 상기 리턴 메시지를 분석한 정보를 상기 데이터베이스에 저장된 정보와 비교하여 상기 외부기기의 서비스 검색 프로토콜을 판별하는 분석부를 포함할 수 있다.A service discovery protocol distinguishing device of a smart device according to the present invention includes a database for storing information related to a service discovery protocol (SDP), a message configuring unit for configuring a probing message, A message transmission / reception unit for receiving a return message corresponding to the probing message from the external device, and information for analyzing the return message received by the message transmission / reception unit, And an analyzer for comparing the service discovery protocol of the external device with the service discovery protocol of the external device.

또한, 상기 메시지 구성부는 제 1 프로빙 메시지(First Probing Message)를 구성하고, 상기 메시지 송수신부는 상기 제 1 프로빙 메시지를 상기 외부기기로 전송하고, 상기 외부기기로부터 상기 제 1 프로빙 메시지에 대응하는 제 1 리턴 메시지(First Return Message)를 수신하고, 상기 분석부는 상기 제 1 리턴 메시지를 상기 데이터베이스에 미리 저장된 정보와 비교하고 분석하여, 상기 외부기기의 서비스 검색 프로토콜의 제 1 후보 범위를 설정하고, 상기 분석부가 상기 제 1 프로빙 메시지로 상기 외부기기의 서비스 검색 프로토콜을 특정하지 못한 경우, 상기 메시지 구성부는 제 2 프로빙 메시지(Second Probing Message)를 구성하고, 상기 메시지 송수신부는 상기 외부기기로 상기 제 2 프로빙 메시지를 전송하고, 상기 외부기기로부터 상기 제 2 프로빙 메시지에 대응하는 제 2 리턴 메시지(Second Return Message)를 수신하고, 상기 분석부는 상기 제 2 리턴 메시지를 상기 데이터베이스에 미리 저장된 정보와 비교하고 분석하여, 상기 외부기기의 서비스 검색 프로토콜의 제 2 후보 범위를 설정할 수 있다.The message composing unit configures a first probing message, the message transmitting and receiving unit transmits the first probing message to the external device, and the first probing message is transmitted from the external device to the first probing message, The analyzer compares the first return message with information previously stored in the database and analyzes the first return message to set a first candidate range of the service discovery protocol of the external device, Wherein the message composing unit configures a second probing message when the first probing message does not specify the service discovery protocol of the external device as the first probing message and the message transmitting and receiving unit transmits the second probing message From the external device, a second probe message corresponding to the second probing message The analyzer may compare the second return message with the information previously stored in the database and analyze the second return message to set a second candidate range of the service discovery protocol of the external device .

또한, 상기 제 2 후보 범위는 상기 제 1 후보 범위 내에서 설정될 수 있다.Also, the second candidate range may be set within the first candidate range.

또한, 상기 제 1 리턴 메시지 및 상기 제 2 리턴 메시지 중 적어도 상기 제 1 리턴 메시지는 에러 메시지(Error Message)일 수 있다.Also, at least the first return message among the first return message and the second return message may be an error message.

또한, 상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 외부기기의 서비스 검색 프로토콜의 종류를 질의하는 메시지이고, 상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 외부기기의 서비스 검색 프로토콜의 버전(Version)을 질의하는 메시지일 수 있다.At least one of the first probing message and the second probing message is a message for inquiring the type of a service discovery protocol of the external device, And a message querying the version of the service discovery protocol of the mobile terminal.

또한, 상기 제 2 프로빙 메시지는 상기 제 1 프로빙 메시지로부터 업데이트(Update)된 메시지일 수 있다.Also, the second probing message may be a message updated from the first probing message.

본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 장치 및 방법은 보다 빠르고 효과적으로 주변의 스마트 기기들과 커뮤니케이션을 수행할 수 있는 효과가 있다.The apparatus and method for determining a service discovery protocol of a smart device according to the present invention can perform communication with surrounding smart devices more quickly and effectively.

도 1 내지 도 3은 본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 장치에 대해 설명하기 위한 도면이다.
도 4 내지 6은 스마트기기의 서비스 검색 프로토콜 판별방법에 대해 설명하기 위한 도면이다.
도 7 내지 도 10은 스마트기기의 서비스 검색 프로토콜 판별방법의 일례에 대해 설명하기 위한 도면이다.
도 11은 본 발명에 따른 서비스 검색 프로토콜 판별방법을 구현하기 위한 알고리즘의 슈도코드의 일례를 설명하기 위한 도면이다.
도 12는 현재 상태에 따른 다음 프로빙 메시지의 구성에 대해 밀리 머신으로 설명한 도면이다.
도 13은 각 상태에 대응하는 결정 모델의 일례를 설명하기 위한 도면이다.
1 to 3 are views for explaining a service discovery protocol distinguishing device of a smart device according to the present invention.
4 to 6 are diagrams for explaining a service discovery protocol determination method of a smart device.
7 to 10 are diagrams for explaining an example of a service discovery protocol discrimination method of a smart device.
11 is a view for explaining an example of a pseudo code of an algorithm for implementing a service search protocol discrimination method according to the present invention.
FIG. 12 is a diagram illustrating a configuration of a next probing message according to a current state with a millimeter.
13 is a diagram for explaining an example of a decision model corresponding to each state.

이하, 첨부된 도면을 참조하여 본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 장치 및 방법에 대해 상세히 설명한다.Hereinafter, an apparatus and method for determining a service discovery protocol of a smart device according to the present invention will be described in detail with reference to the accompanying drawings.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해될 수 있다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It is to be understood that the present invention is not intended to be limited to the specific embodiments but includes all changes, equivalents, and alternatives falling within the spirit and scope of the present invention.

본 발명을 설명함에 있어서 제 1, 제 2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되지 않을 수 있다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용될 수 있다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제 1 구성요소는 제 2 구성요소로 명명될 수 있고, 유사하게 제 2 구성요소도 제 1 구성요소로 명명될 수 있다.In describing the present invention, the terms first, second, etc. may be used to describe various components, but the components may not be limited by the terms. The terms may only be used for the purpose of distinguishing one element from another. For example, without departing from the scope 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.

및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함할 수 있다.The term " and / or " may include any combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급되는 경우는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해될 수 있다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해될 수 있다.When an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, but other elements may be present in between Can be understood. On the other hand, when it is mentioned that an element is "directly connected" or "directly connected" to another element, it can be understood that no other element exists in between.

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

본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것으로서, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해될 수 있다.In the present application, the terms "comprises", "having", and the like are used interchangeably to designate one or more of the features, numbers, steps, operations, elements, components, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, parts, or combinations thereof.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가질 수 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 가지는 것으로 해석될 수 있으며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않을 수 있다.Unless otherwise defined, all terms used herein, including technical or scientific terms, may have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Terms such as those defined in commonly used dictionaries can be interpreted as having a meaning consistent with the meaning in the context of the relevant art and are, unless expressly defined in the present application, interpreted in an ideal or overly formal sense .

아울러, 이하의 실시예는 당 업계에서 평균적인 지식을 가진 자에게 보다 완전하게 설명하기 위해서 제공되는 것으로서, 도면에서의 요소들의 형상 및 크기 등은 보다 명확한 설명을 위해 과장될 수 있다.In addition, the following embodiments are provided to explain more fully to the average person skilled in the art. The shapes and sizes of the elements in the drawings and the like can be exaggerated for clarity.

이하에서 설명되는 다양한 실시예들은 소프트웨어, 하드웨어 또는 이들의 조합된 것을 이용하여 컴퓨터 또는 이와 유사한 장치로 읽을 수 있는 기록매체 내에서 구현될 수 있다.The various embodiments described below may be implemented in a recording medium readable by a computer or similar device using software, hardware, or a combination thereof.

하드웨어적인 구현에 의하면, 본 발명의 실시예는 ASICs (application specific integrated circuits), DSPs (digital signal processors), DSPDs (digital signal processing devices), PLDs (programmable logic devices), FPGAs (field programmable gate arrays, 프로세서(processors), 제어기(controllers), 마이크로 컨트롤러(micro-controllers), 마이크로 프로세서(microprocessors), 기능 수행을 위한 전기적인 유닛 중 적어도 하나를 이용하여 구현될 수 있다.In accordance with a hardware implementation, embodiments of the present invention may be implemented in a processor, such as application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays may be implemented using at least one of processors, controllers, micro-controllers, microprocessors, and electrical units for performing functions.

한편, 소프트웨어적인 구현에 의하면, 본 발명에서 절차나 기능과 같은 실시예들은 적어도 하나의 기능 또는 작동을 수행하게 하는 별개의 소프트웨어 모듈과 함께 구현될 수 있다.On the other hand, according to a software implementation, embodiments such as procedures or functions in the present invention may be implemented with separate software modules that perform at least one function or operation.

이하에서 'A 및/또는 B'는 'A 및 B 중 적어도 하나'로 해석될 수 있다.Hereinafter, 'A and / or B' can be interpreted as 'at least one of A and B.'

이하에서 설명하는 외부기기는 IoT 기기로서, 컴퓨팅 능력을 갖추고 스스로 의사 결정을 할 수 있는 컴퓨팅 기기를 의미할 수 있다.The external device described below may be an IoT device, which means a computing device capable of computing on its own and making decisions on its own.

도 1 내지 도 3은 본 발명에 따른 스마트기기의 서비스 검색 프로토콜 판별 장치에 대해 설명하기 위한 도면이다.1 to 3 are views for explaining a service discovery protocol distinguishing device of a smart device according to the present invention.

여기서는, 본 발명에 따른 스마트기기(10)에 대해 스마트폰(Smart Phone) 등의 이동통신 단말기를 예로 들어 설명하지만, 본 발명은 이에 한정되지 않을 수 있다. 예를 들면, 본 발명에 따른 스마트기기(10)는 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 네비게이션 등일 수 있다.Here, the smart device 10 according to the present invention will be described by taking a mobile communication terminal such as a smart phone as an example, but the present invention is not limited thereto. For example, the smart device 10 according to the present invention may be a laptop computer, a digital broadcasting terminal, a PDA (Personal Digital Assistants), a PMP (Portable Multimedia Player), a navigation system, or the like.

도 1을 살펴보면, 본 발명에 따른 스마트기기(10)는 판별장치(100), 통신부(120), 메모리부(130), 사용자 입력부(140), 표시부(150), 음성출력부(160) 및 제어부(170)를 포함할 수 있다. 도 1에 도시된 구성요소들이 필수적인 것은 아니어서, 그보다 많은 구성요소들을 갖거나 그보다 적은 구성요소들을 갖는 스마트기기(10)를 구현하는 것도 가능하다.1, a smart device 10 according to the present invention includes a discriminator 100, a communication unit 120, a memory unit 130, a user input unit 140, a display unit 150, a voice output unit 160, And may include a control unit 170. 1 are not essential, it is also possible to implement a smart device 10 having more or fewer components than those shown in FIG.

판별장치(100)는 근접하는 외부기기를 검색하여 검출할 수 있다.The determination device 100 can search for and detect nearby external devices.

아울러, 판별장치(100)는 소정의 프로빙 메시지(Probing Message)를 작성하고, 작성한 프로빙 메시지를 이용하여 검출한 외부기기의 서비스 검색 프로토콜(Service Discovery Protocol, SDP)을 판별할 수 있다.In addition, the determination apparatus 100 may generate a predetermined probing message and determine the service discovery protocol (SDP) of the external device detected using the generated probing message.

이러한 판별장치(100)에 대해서는 이하에서 보다 상세히 설명하기로 한다.The discriminating apparatus 100 will be described in more detail below.

통신부(120)는 외부기기 등과 무선 통신을 위한 적어도 하나의 통신모듈을 포함할 수 있다. 예를 들면, 통신부(120)는 이동통신모듈, 무선 인터넷 모듈 및 근거리 통신 모듈 중 적어도 하나를 포함할 수 있다.The communication unit 120 may include at least one communication module for wireless communication with an external device or the like. For example, the communication unit 120 may include at least one of a mobile communication module, a wireless Internet module, and a local communication module.

이동통신 모듈은, 이동 통신망 상에서 기지국, 외부기기(다른 이동통신 단말기 등) 등과 무선 신호를 송수신할 수 있다. 무선 신호는, 음성 호 신호, 화상 통화 호 신호 또는 문자/멀티미디어 메시지 송수신에 따른 다양한 형태의 데이터를 포함할 수 있다.The mobile communication module can transmit and receive a radio signal to and from a base station and an external device (another mobile communication terminal, etc.) on a mobile communication network. The wireless signal may include various types of data depending on a voice call signal, a video call signal or a text / multimedia message transmission / reception.

무선 인터넷 모듈은 무선 인터넷 접속을 위한 모듈을 의미할 수 있다. 무선 인터넷 기술로는 LTE(Long Term Evolution), W-CDMA(Wideband Code Division Multiple Access), WLAN(Wireless LAN)(WiFi), Wibro(Wireless broadband), Wimax(World Interoperability for Microwave Access), HSDPA(High Speed Downlink Packet Access) 등이 이용될 수 있다.The wireless Internet module may refer to a module for wireless Internet access. Wireless Internet technologies include Long Term Evolution (LTE), Wideband Code Division Multiple Access (W-CDMA), Wireless LAN (WiFi), Wibro (Wireless broadband), Wimax (World Interoperability for Microwave Access) Speed Downlink Packet Access) may be used.

무선 인터넷 모듈은 외부로부터 서비스 검색 프로토콜(SDP)에 대응하는 정보를 검색하고, 검색한 서비스 검색 프로토콜에 대응하는 정보를 전송받을 수 있다.The wireless Internet module may retrieve information corresponding to the service discovery protocol (SDP) from the outside and receive information corresponding to the retrieved service discovery protocol.

근거리 통신 모듈은 근거리 통신을 위한 모듈을 의미할 수 있다. 근거리 통신 기술로 블루투스(Bluetooth), RFID(Radio Frequency Identification), 적외선 통신(IrDA, infrared Data Association), UWB(Ultra Wideband), ZigBee 등이 이용될 수 있다.The short-range communication module may mean a module for short-range communication. Bluetooth, radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, and the like can be used as the short distance communication technology.

근거리 통신 모듈은 근거리 통신을 이용하여 외부기기와 통신을 수행할 수 있다.The short-range communication module can perform communication with an external device using short-range communication.

사용자 입력부(140)는 사용자가 스마트기기(10)의 동작 제어를 위한 입력 데이터를 발생시킬 수 있다. 사용자 입력부(140)는 키패드(keypad), 돔 스위치(dome switch), 터치 패드(정압/정전), 조그 휠 및/또는 조그 스위치를 포함할 수 있다.The user input unit 140 may generate input data for controlling the operation of the smart device 10 by a user. The user input unit 140 may include a keypad, a dome switch, a touch pad (static / static), a jog wheel, and / or a jog switch.

표시부(150)는 스마트기기(10)에서 처리되는 정보를 화면상에 출력할 수 있다. 예를 들어, 표시부(150)는 외부기기의 검출을 알리는 정보를 화면상에 표시하거나, 판별한 외부기기의 서비스 검색 프로토콜(SDP)에 대한 정보를 화면상에 표시하는 것이 가능할 수 있다.The display unit 150 can output information processed in the smart device 10 on the screen. For example, the display unit 150 may display information indicating the detection of the external device on the screen, or may display information on the service discovery protocol (SDP) of the external device that has determined it on the screen.

음성 출력부(160)는 스마트기기(10)에서 수행되는 기능과 관련된 음향 신호를 출력한다. 예컨대, 음성 출력부(160)는 호신호 수신, 통화모드 또는 녹음 모드, 음성인식 모드, 방송수신 모드 등에서 수신되는 오디오 데이터를 출력하거나 혹은 메모리부(130)에 저장된 오디오 데이터를 출력할 수 있다. 이러한 음성 출력부(160)에는 스피커(speaker), 버저(Buzzer) 등이 포함될 수 있다.The voice output unit 160 outputs an acoustic signal related to a function performed in the smart device 10. For example, the audio output unit 160 may output audio data received in a call signal reception mode, a call mode or a recording mode, a voice recognition mode, a broadcast reception mode, or the like, or may output audio data stored in the memory unit 130. The audio output unit 160 may include a speaker, a buzzer, and the like.

도시하지는 않았지만, 본 발명에 따른 스마트기기(10)는 사용자가 느낄 수 있는 다양한 촉각 효과를 발생시킬 수 있는 햅틱 모듈(haptic module)을 더 포함할 수 있다. 이러한 햅틱 모듈은 예를 들면 진동을 발생시킬 수 있다.Although not shown, the smart device 10 according to the present invention may further include a haptic module capable of generating various tactile effects that the user can feel. Such a haptic module can generate vibration, for example.

메모리(130)는 제어부(170)의 동작을 위한 프로그램을 저장할 수 있고, 입/출력되는 데이터들(예를 들어, 폰북, 메시지, 정지영상, 동영상 등)을 임시 저장할 수도 있다.The memory 130 may store a program for the operation of the controller 170 and temporarily store input / output data (e.g., a phone book, a message, a still image, a moving picture, etc.).

아울러, 메모리(130)는 서비스 검색 프로토콜(SDP)의 종류에 대한 정보, 프로빙 메시지와 리턴 메시지(Return Message)에 대한 정보 등을 저장할 수 있다.In addition, the memory 130 may store information on a type of a service discovery protocol (SDP), information on a probing message and a return message.

인터페이스부(110)는 스마트기기(10)에 연결되는 모든 외부기기와의 통로 역할을 할 수 있다. 인터페이스부(110)는 외부기기로부터 데이터를 전송받거나 전원을 공급받아 스마트기기(10) 내부의 각 구성 요소에 전달하거나 스마트기기(10) 내부의 데이터가 외부 기기로 전송되도록 할 수 있다. 예를 들어, 유/무선 헤드셋 포트, 외부 충전기 포트, 유/무선 데이터 포트, 메모리 카드(memory card) 포트, 식별 모듈이 구비된 장치를 연결하는 포트, 오디오 I/O(Input/Output) 포트, 비디오 I/O(Input/Output) 포트, 이어폰 포트 등이 인터페이스부(110)에 포함될 수 있다.The interface unit 110 may serve as a path for communication with all external devices connected to the smart device 10. The interface unit 110 receives data from an external device or receives power from the external device to transfer the data to each component in the smart device 10 or to transmit data in the smart device 10 to an external device. For example, a wired / wireless headset port, an external charger port, a wired / wireless data port, a memory card port, a port for connecting a device having an identification module, an audio I / O port, A video input / output (I / O) port, an earphone port, and the like may be included in the interface unit 110.

제어부(170)는 스마트기기(10)의 전반적인 동작을 제어할 수 있다. 예를 들어 음성 통화, 데이터 통신, 화상 통화 등을 위한 관련된 제어 및 처리를 수행할 수 있다.The control unit 170 can control the overall operation of the smart device 10. [ For example, perform related controls and processing for voice calls, data communications, video calls, and the like.

여기에 설명되는 다양한 실시예는 예를 들어, 소프트웨어, 하드웨어 또는 이들의 조합된 것을 이용하여 컴퓨터 또는 이와 유사한 장치로 읽을 수 있는 기록매체 내에서 구현될 수 있다.The various embodiments described herein may be embodied in a recording medium readable by a computer or similar device using, for example, software, hardware, or a combination thereof.

이상에서 설명한 스마트기기(10)에 적어도 하나의 다른 부분이 추가되는 것이 가능할 수 있다. 예를 들면, 스마트기기(10)는 오디오 신호 또는 비디오 신호 입력을 위한 카메라, 마이크 등의 A/V(Audio/Video) 입력부를 더 포함할 수 있다.It may be possible for at least one other part to be added to the smart device 10 described above. For example, the smart device 10 may further include an A / V (Audio / Video) input unit such as a camera or a microphone for inputting an audio signal or a video signal.

이러한 스마트기기(10)는 다양한 외부기기를 검출하고, 검출한 외부기기와 통신을 수행할 수 있다. 예를 들면, 도 2의 경우와 같이, 본 발명에 따른 스마트기기(10)는 냉장고(20a), 도어(Door, 20b), 세탁기(20c), 자동차(20d) 등의 외부기기(20)를 검출할 수 있으며, 이러한 외부기기(20)들과 통신을 수행할 수 있다.The smart device 10 can detect various external devices and perform communication with the detected external devices. 2, the smart device 10 according to the present invention includes an external device 20 such as a refrigerator 20a, a door 20b, a washing machine 20c, and a car 20d. And can perform communication with the external devices 20.

여기서, 외부기기(20)들은 스마트기기(10)와 통신을 수행할 수 있는 IoT기기들일 수 있다.Here, the external devices 20 may be IoT devices capable of communicating with the smart device 10.

적어도 하나의 외부기기(20)를 검출하고, 검출한 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별하기 위한 판별장치(100)에 대해 첨부된 도 3을 참조하여 보다 상세히 설명하면 아래와 같다.The discriminating apparatus 100 for detecting at least one external apparatus 20 and determining the service discovery protocol (SDP) of the detected external apparatus 20 will be described in more detail with reference to FIG. 3 attached hereto .

도 3에 도시된 구성요소들이 필수적인 것은 아니어서, 그보다 많은 구성요소들을 갖거나 그보다 적은 구성요소들을 갖는 판별장치(100)를 구현하는 것도 가능하다.3 are not essential, it is also possible to implement the discriminating apparatus 100 having more or fewer components than those shown in Fig.

도 3을 살펴보면, 본 발명에 따른 판별장치(100)는 데이터베이스(Database, SDP Knowledge Base (KB), 101), 메시지 구성부(Probe Message Composer, 102) 및 메시지 송수신부(Probe Message Transceiver, 103), 분석부(SDP Analyzer, 104)를 포함할 수 있다. 아울러, 본 발명에 따른 판별장치(100)는 검색부(SDP KB Utility, 105)를 더 포함할 수 있다.3, the discriminator 100 according to the present invention includes a database, a SDP Knowledge Base (KB) 101, a Probe Message Composer 102 and a Probe Message Transceiver 103, , And an analysis unit (SDP Analyzer) 104. In addition, the determination apparatus 100 according to the present invention may further include a search unit (SDP KB Utility) 105.

데이터베이스(101)는 서비스 검색 프로토콜(SDP)에 관련된 정보를 저장할 수 있다. 예를 들면, 데이터베이스(101)는 프로빙 메시지와 리턴 메시지에 대한 정보 등을 저장할 수 있고, 프로빙 메시지에 대응한 리턴 메시지의 해석에 대한 정보를 저장할 수 있다.The database 101 may store information related to the service discovery protocol (SDP). For example, the database 101 may store information about the probing message and the return message, and may store information about the interpretation of the return message corresponding to the probing message.

아울러, 데이터베이스(101)는 프로빙 메시지를 작성하는 방법에 대한 정보, 프로빙 메시지를 작성하는 순서에 대한 정보 등을 저장할 수 있다.In addition, the database 101 may store information on how to create a probe message, information on a procedure for creating a probe message, and the like.

메시지 구성부(102)는 외부기기(20)로 전달할 프로빙 메시지(Probing Message)를 구성할 수 있다.The message configuration unit 102 may configure a probing message to be transmitted to the external device 20. [

메시지 송수신부(103)는 프로빙 메시지를 외부기기(20)로 전송하고, 외부기기(20)로부터 프로빙 메시지에 대응하는 리턴 메시지를 수신할 수 있다.The message transmitting / receiving unit 103 may transmit the probing message to the external device 20 and receive the return message corresponding to the probing message from the external device 20. [

분석부(104)는 메시지 송수신부(103)가 수신한 리턴 메시지를 분석한 정보를 데이터베이스(101)에 저장된 정보와 비교하여 외부기기(20)의 서비스 검색 프로토콜을 판별할 수 있다. 예를 들면, 분석부(104)는 외부기기(20)로 어떤 프로빙 메시지를 보낼지, 프로빙 메시지에 대응하는 리턴 메시지가 어떤 의미를 갖는지, 아울러 리턴 메시지에 대응하여 어떤 반응을 보여야 될지를 판단할 수 있다.The analysis unit 104 may determine the service search protocol of the external device 20 by comparing the analyzed information of the return message received by the message transmission / reception unit 103 with information stored in the database 101. For example, the analyzer 104 can determine which probe message to send to the external device 20, what the return message corresponding to the probe message has, and what response should be displayed in response to the return message have.

검색부(105)는 분석부(104)의 제어에 따라 데이터베이스(101)를 검색할 수 있다.The searching unit 105 can search the database 101 under the control of the analyzing unit 104. [

이상에서 설명한 판별장치(100)를 이용한 스마트기기의 서비스 검색 프로토콜 판별방법에 대해 첨부된 도면을 참조하여 살펴보면 아래와 같다.Hereinafter, a method for determining a service discovery protocol of a smart device using the discriminator 100 will be described with reference to the accompanying drawings.

도 4 내지 6은 스마트기기의 서비스 검색 프로토콜 판별방법에 대해 설명하기 위한 도면이다. 이하에서는 이상에서 설명한 부분에 대한 설명은 생략될 수 있다.4 to 6 are diagrams for explaining a service discovery protocol determination method of a smart device. In the following, description of the parts described above may be omitted.

도 4를 살펴보면, 먼저 본 발명에 따른 스마트기기(10)가 외부기기(20)를 검출할 수 있다(S100).Referring to FIG. 4, the smart device 10 according to the present invention can detect the external device 20 (S100).

이후, 스마트기기(10)는 검출한 외부기기(20)의 서비스 검색 프로토콜(SDP)을 확인(판별)할 수 있다(S200).Thereafter, the smart device 10 can confirm (discriminate) the detected service discovery protocol (SDP) of the external device 20 (S200).

이후, 서비스 검색 프로토콜(SDP)을 판별한 외부기기(20)와 통신을 수행할 수 있다(S300).Thereafter, communication with the external device 20 that has determined the service discovery protocol (SDP) can be performed (S300).

검출한 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별하는 방법에 대해 보다 상세히 설명하기로 한다.A method for determining the service discovery protocol (SDP) of the detected external device 20 will now be described in more detail.

도 5와 같이, 외부기기(20)를 검출(S100)하는 단계 이후에, 메시지 구성부(102)는 제 1 프로빙 메시지(First Probing Message, PM1)를 작성(S201)하고, 메시지 송수신부(103)는 작성된 제 1 프로빙 메시지(PM1)를 검출한 외부기기(20)로 전송할 수 있다(S202).5, after the step of detecting the external device 20 (S100), the message composing unit 102 creates a first probing message (PM1) (S201), and the message transmission / reception unit 103 May transmit the created first probing message PM1 to the detected external device 20 (S202).

그러면, 외부기기(20)에서는 제 1 프로빙 메시지(PM1)에 대응하여 제 1 리턴 메시지(First Return Message, RM1)를 본 발명에 따른 스마트기기(10)로 전송할 수 있다. 그러면, 본 발명에 따른 판별장치(100)의 메시지 송수신부(103)에서 이를 수신(S203)할 수 있다.Then, the external device 20 can transmit a first return message (RM1) to the smart device 10 according to the present invention in response to the first probing message PM1. Then, the message transmitting / receiving unit 103 of the discriminating apparatus 100 according to the present invention can receive it (S203).

만약, 외부기기(20)에서 제 1 프로빙 메시지(PM1)를 이해하지 못하거나, 수신하지 못한 경우 등에는 외부기기(20)에서 소정의 리턴 메시지(RM)를 스마트기기(10)로 전송하지 못하는 경우도 발생할 수 있다. 이에 대해서는 이후에 설명하기로 하고, 여기서는 외부기기(20)가 소정의 리턴 메시지(RM)를 스마트기기(10)로 전송하는 경우를 가정하여 설명하기로 한다.If the external device 20 does not understand the first probing message PM1 or does not receive the first probing message PM1 and the external device 20 can not transmit a predetermined return message RM to the smart device 10 May also occur. This will be described below, assuming that the external device 20 transmits a predetermined return message RM to the smart device 10.

이후, 분석부(104)는 메시지 송수신부(103)가 수신한 제 1 리턴 메시지(RM1)에 대한 정보를 검색부(105)를 통해 데이터베이스(101)에 저장된 정보와 비교/분석할 수 있다(S204).The analysis unit 104 may compare information about the first return message RM1 received by the message transmission / reception unit 103 with information stored in the database 101 through the search unit 105 S204).

이후, 분석부(104)는 제 1 리턴 메시지(RM1)를 분석한 결과에 따라 외부기기(20)의 서비스 검색 프로토콜(SDP)의 제 1 후보 범위를 설정할 수 있다(S205).Then, the analyzer 104 may set the first candidate range of the service discovery protocol (SDP) of the external device 20 according to the result of analyzing the first return message RM1 (S205).

이후, 설정한 제 1 후보 범위로서 외부기기(20)의 서비스 검색 프로토콜(SDP)을 특정할 수 있는지의 여부를 판단할 수 있다(S206).Thereafter, it can be determined whether or not the service discovery protocol (SDP) of the external device 20 can be specified as the first candidate range set (S206).

판단결과, 제 1 리턴 메시지(RM1)만으로 외부기기(20)의 서비스 검색 프로토콜(SDP)을 특정할 수 있는 경우에는, 즉 제 1 후보 범위로서 외부기기(20)의 서비스 검색 프로토콜(SDP)을 특정할 수 있는 경우에는 특정한 서비스 검색 프로토콜(SDP)을 적용하여 데이터 송수신을 수행할 수 있다(S207).As a result of the determination, if the service discovery protocol (SDP) of the external device 20 can be specified only by the first return message RM1, that is, the service discovery protocol (SDP) of the external device 20 as the first candidate range If it can be specified, data transmission / reception can be performed by applying a specific service discovery protocol (SDP) (S207).

반면에, S206단계에서 판단결과 제 1 후보 범위로서 외부기기(20)의 서비스 검색 프로토콜(SDP)을 특정할 수 없는 경우에는 외부기기(20)의 서비스 검색 프로토콜(SDP)이 판별불가인지의 여부를 판단할 수 있다(S208).On the other hand, if it is determined in step S206 that the service discovery protocol (SDP) of the external device 20 can not be specified as the first candidate range, whether the service discovery protocol (SDP) of the external device 20 can be discriminated (S208).

판단결과, 외부기기(20)의 서비스 검색 프로토콜(SDP)이 판별불가인 경우에는 미리 설정된 다른 기능(Default)을 수행할 수 있다.As a result of the determination, if the service discovery protocol (SDP) of the external device 20 can not be determined, another predetermined function (Default) can be performed.

예를 들어, 프로빙 메시지의 전송횟수가 미리 설정된 기준횟수를 초과하는 경우에 판별불가일 수 있다.For example, it may be impossible to discriminate when the number of transmission times of the probing message exceeds a predetermined reference number.

혹은, 외부기기(20)로부터 수신되는 리턴 메시지(RM)를 해석할 수 없는 경우에 판별불가일 수 있다.Or can not be discriminated when the return message RM received from the external device 20 can not be interpreted.

혹은, 더 이상 외부기기(20)로부터 리턴 메시지(RM)가 수신되지 않는 경우에 판별불가일 수 있다.Alternatively, it can not be discriminated when the return message RM is not received from the external device 20 any more.

이처럼, 판별불가인 경우에 판별불가에 대한 정보를 화면상에 표시하거나, 검색부(105)가 외부로부터 서비스 검색 프로토콜(SDP)에 대한 정보를 검색하여 다운로드하는 것도 가능할 수 있다. 판별불가인 경우에 수행되는 기능은 이에 한정되지 않을 수 있다.As described above, it is also possible to display information on the screen that can not be discriminated in the case where it can not be discriminated, or to retrieve information about the service retrieval protocol (SDP) from the outside and to download the retrieval unit 105 from the outside. The function performed in the case where it can not be determined is not limited to this.

반면에, 외부기기(20)의 서비스 검색 프로토콜(SDP)이 판별불가가 아닌 경우에는 메시지 구성부(102)는 제 1 프로빙 메시지(PM1)와는 다른 제 2 프로빙 메시지(Second Probing Message, PM2)를 작성(S210)하고, 메시지 송수신부(103)는 작성된 제 2 프로빙 메시지(PM2)를 검출한 외부기기(20)로 전송할 수 있다(S211). 여기서, 제 2 프로빙 메시지(PM2)는 제 1 프로빙 메시지(PM1)로부터 업데이트(Update)된 메시지인 것이 바람직할 수 있다. 다르게 표현하면, 제 2 프로빙 메시지(PM2)는 제 1 프로빙 메시지(PM1)보다 더 구체화된 메시지인 것이 바람직할 수 있다.On the other hand, if the service discovery protocol (SDP) of the external device 20 is not discriminable, the message configuration unit 102 transmits a second probing message (PM2) different from the first probing message PM1 (S210), and the message transmission / reception unit 103 can transmit the generated second probing message PM2 to the detected external device 20 (S211). Here, the second probing message PM2 may be a message updated from the first probing message PM1. In other words, it may be desirable that the second probing message PM2 is a more specific message than the first probing message PMl.

외부기기(20)에서는 제 2 프로빙 메시지(PM2)에 대응하여 제 2 리턴 메시지(Second Return Message, RM2)를 본 발명에 따른 스마트기기(10)로 전송할 수 있다. 그러면, 본 발명에 따른 판별장치(100)의 메시지 송수신부(103)에서 제 2 리턴 메시지(RM2)를 수신(S212)할 수 있다.The external device 20 can transmit a second return message (RM2) to the smart device 10 according to the present invention in response to the second probing message PM2. Then, the message transmission / reception unit 103 of the determination apparatus 100 according to the present invention can receive the second return message RM2 (S212).

여기서, 제 1 리턴 메시지(RM1) 및 제 2 리턴 메시지(RM2) 중 적어도 제 1 리턴 메시지(RM1)는 에러 메시지(Error Message)일 수 있다. 다르게 표현하면, 제 1 리턴 메시지(RM1) 만으로 외부기기(20)의 서비스 검색 프로토콜(SDP)을 특정할 수 있는 경우에는 제 1 리턴 메시지(RM1)는 에러 메시지가 아닐 수 있으나, 메시지 송수신부(103)가 제 2 리턴 메시지(RM2)까지 수신하는 경우에는 제 1 리턴 메시지(RM1)는 에러 메시지인 것이 가능할 수 있다.Here, at least the first return message RM1 among the first return message RM1 and the second return message RM2 may be an error message. In other words, when the service discovery protocol (SDP) of the external device 20 can be specified only by the first return message RM1, the first return message RM1 may not be an error message, 103 may receive up to the second return message RM2, it may be possible that the first return message RM1 is an error message.

만약, 외부기기(20)에서 제 2 프로빙 메시지(PM2)를 이해하지 못하거나, 수신하지 못한 경우 등에는 외부기기(20)에서 소정의 리턴 메시지(RM)를 스마트기기(10)로 전송하지 못하는 경우도 발생할 수 있다.If the external device 20 does not understand or receive the second probing message PM2 or the like, the external device 20 can not transmit the predetermined return message RM to the smart device 10 May also occur.

이후, 분석부(104)는 메시지 송수신부(103)가 수신한 제 2 리턴 메시지(RM2)에 대한 정보를 검색부(105)를 통해 데이터베이스(101)에 저장된 정보와 비교/분석할 수 있다(S213).The analysis unit 104 may compare information about the second return message RM2 received by the message transmission / reception unit 103 with information stored in the database 101 through the search unit 105 S213).

이후, 분석부(104)는 제 2 리턴 메시지(RM2)를 분석한 결과에 따라 외부기기(20)의 서비스 검색 프로토콜(SDP)의 제 2 후보 범위를 설정할 수 있다(S214). 여기서, 제 2 후보 범위는 제 1 후보 범위 내에서 설정될 수 있다.Thereafter, the analyzer 104 may set the second candidate range of the service discovery protocol (SDP) of the external device 20 according to the result of analyzing the second return message RM2 (S214). Here, the second candidate range may be set within the first candidate range.

예를 들면, 도 6의 경우와 같이, 제 1 프로빙 메시지(PM1)로부터 설정된 서비스 검색 프로토콜(SDP)의 제 1 후보 범위가 제 1 영역(A1)이라면, 제 2 프로빙 메시지(PM2)로부터 설정된 서비스 검색 프로토콜(SDP)의 제 2 후보 범위는 제 1 영역(A1)에 포함된 제 2 영역(A2)일 수 있다. 이러한 방법으로 제 3 부호 범위의 제 3 영역(A3), 제 4 후보 범위의 제 4 영역(A4)이 설정될 수 있다.For example, as in the case of FIG. 6, if the first candidate range of the service discovery protocol (SDP) set from the first probing message PM1 is the first area A1, The second candidate range of the search protocol (SDP) may be the second area A2 included in the first area A1. In this way, a third region A3 of the third code range and a fourth region A4 of the fourth candidate range can be set.

이후, 설정한 제 2 후보 범위로서 외부기기(20)의 서비스 검색 프로토콜(SDP)을 특정할 수 있는지의 여부를 판단할 수 있다(S206).Thereafter, it is possible to determine whether or not the service discovery protocol (SDP) of the external device 20 can be specified as the set second candidate range (S206).

이러한 과정을 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별할 때까지 반복하는 것이 가능하다.This process can be repeated until the service discovery protocol (SDP) of the external device 20 is determined.

다르게 표현하면, 분석부(104)는 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 파악하기 애매한 경우, 즉 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 명확하게 파악하지 못한 경우에는 현재까지 대략적으로 파악한 서비스 검색 프로토콜(SDP)의 모델에 대한 정보를 바탕으로 메시지 구성부(102)로 하여금 그 다음 프로빙 메시지를 작성하도록 할 수 있다.In other words, when the analyzing unit 104 is ambiguous to grasp the type of the service discovery protocol (SDP) of the external device 20, that is, does not clearly grasp the type of the service discovery protocol (SDP) of the external device 20 The message composing unit 102 can generate the next probing message based on the information about the model of the service discovery protocol (SDP) roughly grasped to date.

예를 들어, 분석부(104)가 제 1 프로빙 메시지(PM1)로서 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 명확하게 판별할 수 있는 경우에는, 제 2 프로빙 메시지(PM2)는 외부기기(20)의 서비스 검색 프로토콜(SDP)의 버전을 질의하는 메시지일 수 있다.For example, when the analyzing unit 104 can clearly determine the type of the service discovery protocol (SDP) of the external device 20 as the first probing message PM1, the second probing message PM2 is Or a message querying the version of the service discovery protocol (SDP) of the external device 20.

반면에, 분석부(104)가 제 1 프로빙 메시지(PM1)로서 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 명확하게 판별할 수 있는 경우에는, 분석부(104)는 제 1 프로빙 메시지(PM1)로부터 획득한 정보를 바탕으로 대략적으로 외부기기(20)의 서비스 검색 프로토콜(SDP)에 대한 모델을 예측할 수 있다. 이후, 분석부(104)는 예측한 정보로서 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 보다 구체화하기 위해 메시지 구성부(102)를 제어하여 제 2 프로빙 메시지(PM2)를 작성하도록 할 수 있다.On the other hand, when the analyzing unit 104 can clearly identify the type of the service discovery protocol (SDP) of the external device 20 as the first probing message PM1, It is possible to roughly predict the model of the service discovery protocol (SDP) of the external device 20 based on the information obtained from the message PM1. The analyzing unit 104 then controls the message composing unit 102 to form the second probing message PM2 to further refine the type of the service discovery protocol (SDP) of the external device 20 as the predicted information can do.

이러한 과정은 판별장치(100)가 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류 및 버전을 최종적으로 판별하거나, 판별에 실패할 때 까지 반복될 수 있다.This process can be repeated until the discrimination apparatus 100 finally discriminates the type and version of the service discovery protocol (SDP) of the external device 20 or fails to discriminate.

위에서 설명한 바와 같이, 제 1 프로빙 메시지(PM1) 및 제 2 프로빙 메시지(PM2) 중 적어도 하나는 검출된 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 질의하는 메시지일 수 있다.As described above, at least one of the first probing message PM1 and the second probing message PM2 may be a message inquiring the type of the service discovery protocol (SDP) of the detected external device 20.

또는, 제 1 프로빙 메시지(PM1) 및 제 2 프로빙 메시지(PM2) 중 적어도 하나는 검출된 외부기기(20)의 서비스 검색 프로토콜(SDP)의 버전(Version)을 질의하는 메시지일 수 있다.Alternatively, at least one of the first probing message PM1 and the second probing message PM2 may be a message inquiring the version of the service discovery protocol (SDP) of the detected external device 20.

예를 들면, 본 발명에 따른 판별장치(100)는 제 1 프로빙 메시지(PM1)를 검출한 외부기기(20)로 전송하여, 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류를 질의할 수 있다. 이러한 경우, 판별장치(100)는 제 1 프로빙 메시지(PM1)에 대응하여 수신한 제 1 리턴 메시지(RM1)를 해석하여 서비스 검색 프로토콜(SDP)의 종류를 판별할 수 있다.For example, the determination apparatus 100 according to the present invention transmits the first probing message PM1 to the detected external device 20, and inquires the type of the service discovery protocol (SDP) of the external device 20 . In this case, the determination apparatus 100 may determine the type of the service discovery protocol (SDP) by interpreting the received first return message RM1 corresponding to the first probing message PM1.

또한, 본 발명에 따른 판별장치(100)는 제 2 프로빙 메시지(PM2)를 검출한 외부기기(20)로 전송하여, 외부기기(20)의 서비스 검색 프로토콜(SDP)의 버전을 질의할 수 있다. 이러한 경우, 판별장치(100)는 제 1 프로빙 메시지(PM2)에 대응하여 수신한 제 2 리턴 메시지(RM2)를 해석하여 서비스 검색 프로토콜(SDP)의 버전을 판별할 수 있다.The discriminating apparatus 100 according to the present invention can also transmit the second probing message PM2 to the detected external device 20 to query the version of the service discovery protocol (SDP) of the external device 20 . In this case, the determination apparatus 100 may determine the version of the service discovery protocol (SDP) by interpreting the received second return message RM2 corresponding to the first probing message PM2.

이상에서 설명한 내용을 다른 관점에서 설명하면 아래와 같다.The above-mentioned contents will be described from a different viewpoint as follows.

본 발명에 따른 스마트기기(10)로 판별되지 않은 외부기기(20)가 접근하면, 판별장치(100)의 분석부(104)는 메시지 송수신부(103)를 제어하여 판별되지 않은 외부기기(20)로 프로빙 메시지로서 몇 개의 패킷(Packet)을 전송하도록 할 수 있다. 이러한 과정으로 판별장치(100)의 분석부(104)는 외부기기(20)에 지정된 포트가 열려있는지, 혹은 사용 중인 서비스 포트가 무엇인지 확인할 수 있다.The analyzing unit 104 of the discriminating apparatus 100 controls the message transmitting and receiving unit 103 to transmit the discriminated result to the external device 20 To transmit several packets as a probing message. In this way, the analysis unit 104 of the determination apparatus 100 can check whether the port designated to the external device 20 is open or the service port being used.

이후, 판별장치(100)의 분석부(104)는 외부기기(20)에서 전송하는 답변, 즉 리턴 메시지(RM)를 분석하여 외부기기(20)의 추상적인 서비스 검색 프로토콜(SDP) 모델을 구체화시킬 수 있다.The analyzing unit 104 of the discriminating apparatus 100 analyzes an answer transmitted from the external device 20, that is, a return message RM to specify an abstract service discovery protocol (SDP) model of the external device 20 .

이후, 분석부(104)는 리턴 메시지(RM)를 분석한 결과를 바탕으로 외부기기(20)가 사용하는 서비스 검색 프로토콜(SDP)의 종류 혹은 버전이 무엇인지 검색부(105)를 통해 데이터베이스(101)로 쿼리(Query)할 수 있다.Based on the result of analyzing the return message RM, the analyzer 104 determines whether the type or version of the service discovery protocol (SDP) used by the external device 20 is a database 101). ≪ / RTI >

그러면, 검색부(105)는 리턴 메시지(RM)를 분석한 결과에 대응하는 정보가 데이터베이스(101)에 있는지 확인하고, 확인한 결과를 분석부(104)로 전달(답변)할 수 있다.Then, the retrieving unit 105 can check whether the information corresponding to the result of analyzing the return message RM exists in the database 101, and transmit the confirmed result to the analyzing unit 104 (reply).

만약, 분석부(104)가 검출한 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별(파악)하게 되면 서비스 검색 프로토콜(SDP)의 종류(이름)와 버전을 반환할 수 있다. 이러한 방법으로 프로빙 메시지를 이용하여 검출한 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별하는 것이 가능하다.If the service discovery protocol (SDP) of the external device 20 detected by the analyzer 104 is discriminated, the type and name of the service discovery protocol (SDP) can be returned. In this way, it is possible to determine the service discovery protocol (SDP) of the external device 20 detected using the probing message.

이러한 경우에는, 외부기기(20)가 이질적인 서비스 검색 프로토콜(SDP)을 사용하는 경우에도 보다 빠르게 용이하게 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별하는 것이 가능하다.In this case, even when the external device 20 uses a heterogeneous service discovery protocol (SDP), it is possible to more quickly determine the service discovery protocol (SDP) of the external device 20.

만약, 판별장치(100)에서 데이터베이스(101)에 저장된 정보만으로 외부기기(20)의 서비스 검색 프로토콜(SDP)을 판별하기 어려운 경우에는 프로빙 메시지를 더 이상 구성할 수 없는 상황에 도달할 수도 있다. 이러한 경우에는, 판별불가로서 미리 설정된 다른 기능(도 5의 제 S209단계) 단계로 진행할 수 있다.If it is difficult to determine the service discovery protocol (SDP) of the external device 20 based solely on the information stored in the database 101, the determination device 100 may reach a state where the probe message can not be constructed any more. In this case, it is possible to proceed to another function (step S209 of FIG.

예를 들면, 위와 같은 경우를 'PROB_FAIL'이라고 할 수 있다. 이러한 경우에는, 유저 또는 관리자에게 데이터베이스(101)를 업데이트 하도록 권장하고, 이에 대한 정보를 출력하여 알릴 수 있다.For example, the above case can be called 'PROB_FAIL'. In such a case, it is recommended to update the database 101 to the user or the administrator, and information about the update may be output.

도 7 내지 도 10은 스마트기기의 서비스 검색 프로토콜 판별방법의 일례에 대해 설명하기 위한 도면이다. 이하에서는 이상에서 설명한 부분에 대한 설명은 생략될 수 있다.7 to 10 are diagrams for explaining an example of a service discovery protocol discrimination method of a smart device. In the following, description of the parts described above may be omitted.

설명의 편의를 위해, 도 7과 같이, 총 12가지의 서비스 검색 프로토콜(SDP)이 존재하는 경우를 가정하여 보자.For convenience of description, it is assumed that a total of 12 service discovery protocols (SDPs) exist as shown in FIG.

예를 들어, 서비스 검색 프로토콜(SDP)의 하나인 'A-16-v2'에서 'A'는 서비스 검색 프로토콜(SDP)의 종류를 의미하고, '16'은 서비스 검색 프로토콜(SDP)의 비트수를 의미하고, 'v2'는 서비스 검색 프로토콜(SDP)의 버전을 의미할 수 있다.For example, in 'A-16-v2' which is one of the service discovery protocol (SDP), 'A' denotes the type of the service discovery protocol (SDP), '16' , And 'v2' may mean the version of the service discovery protocol (SDP).

도 7은 단순히 서비스 검색 프로토콜(SDP)에 대한 설명하기 위해 예로 든 것에 불과하고, 본 발명이 이에 한정되는 것은 아닐 수 있다.FIG. 7 is merely an example for explaining the service discovery protocol (SDP), and the present invention is not limited thereto.

본 발명에 따른 판별장치(100)의 데이터베이스(101)에는, 도 8, 도 9, 도10의 경우와 같이, 12가지의 서비스 검색 프로토콜(SDP)에 대한 정보, 프로빙 메시지(PM)에 대한 정보, 리턴 메시지(RM)에 대한 정보, 리턴 메시지가 의미하는 정보 등의 정보가 저장될 수 있다.The database 101 of the discriminating apparatus 100 according to the present invention stores information on twelve service discovery protocols (SDP), information on probing messages (PM) , Information on a return message (RM), information on a return message, and the like can be stored.

도 8의 내용을 해석하면, 'A-16-v2', 'A-16-v1', 'A-8-v2', 'A-8-v1'의 총 4가지의 서비스 검색 프로토콜(SDP)(A 타입인 서비스 검색 프로토콜)을 사용하는 외부기기(20)에 'Message A'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Welcome'이라는 리턴 메시지(RM)를 회신할 수 있다.8, a total of four service discovery protocols (SDP) 'A-16-v2', 'A-16-v1', 'A- Message A 'is transmitted to the external device 20 using the service type (Type A service discovery protocol), the external device 20 can return a return message RM of' Welcome '.

또한, 'A-16-v2', 'A-16-v1', 'A-8-v2', 'A-8-v1'의 총 4가지의 서비스 검색 프로토콜(SDP)을 사용하는 외부기기(20)에 'Message B'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Error a1'이라는 리턴 메시지(RM)를 회신하고, 'Message C'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Error a2'이라는 리턴 메시지(RM)를 회신할 수 있다.In addition, an external device (hereinafter, referred to as " A-16-v2 ") using four service detection protocols The external device 20 returns a return message RM of 'Error a1' and transmits a probe message of 'Message C' to the external device 20 20), a return message (RM) 'Error a2' can be returned.

'B-16-v2', 'B-16-v1', 'B-8-v2', 'B-8-v1', 'C-16-v2', 'C-16-v1', 'C-8-v2', 'C-8-v1'의 총 8가지의 서비스 검색 프로토콜(SDP)을 사용하는 외부기기(20)에 대해서는 앞서 설명한 내용을 바탕으로 충분히 유추할 수 있으므로, 중복되는 설명은 생략하기로 한다.B-16-v2 ',' C-16-v1 ',' B-8-v2 ' Since the external device 20 using the eight service discovery protocols (SDP), i.e., '-8-v2' and 'C-8-v1', can be sufficiently inferred based on the above- It will be omitted.

도 9의 내용을 해석하면, 'C-16-v2', 'C-16-v1', 'C-8-v2', 'C-8-v1'의 총 4가지의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜) 중 'C-16-v2', 'C-16-v1'의 총 2가지의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜 중 16비트에 대응하는 서비스 검색 프로토콜)을 사용하는 외부기기(20)에 'Message C16'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Welcome'이라는 리턴 메시지(RM)를 회신할 수 있다.9, a total of four service discovery protocols (SDP) 'C-16-v2', 'C-16-v1', 'C- (C-16-v2) and C-16-v1 among the service discovery protocol (C type service discovery protocol) Protocol, the external device 20 can return a return message RM of 'Welcome' when the probe message of 'Message C16' is transmitted to the external device 20 using the protocol.

또한, 'C-16-v2', 'C-16-v1', 'C-8-v2', 'C-8-v1'의 총 4가지의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜) 중 'C-16-v2', 'C-16-v1'의 총 2가지의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜 중 16비트에 대응하는 서비스 검색 프로토콜)을 사용하는 외부기기(20)에 'Message C8'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Error 16'이라는 리턴 메시지(RM)를 회신할 수 있다.In addition, a total of four service discovery protocols (SDP) (C type service discovery, C-16-v2, C-16-v1, C-8- (Service discovery protocol corresponding to 16 bits of the service discovery protocol of the C type) of the two service discovery protocols (SDP) of 'C-16-v2' and 'C- When the probe message of 'Message C8' is transmitted to the device 20, the external device 20 can return a return message RM of 'Error 16'.

'C-8-v2', 'C-8-v1'의 총 2가지의 서비스 검색 프로토콜(SDP)을 사용하는 외부기기(20)에 대해서는 앞서 설명한 내용을 바탕으로 충분히 유추할 수 있으므로, 중복되는 설명은 생략하기로 한다.The external device 20 using the two service discovery protocols (SDP) 'C-8-v2' and 'C-8-v1' can be sufficiently inferred based on the above- A description thereof will be omitted.

도 10의 내용을 해석하면, 'C-16-v2', 'C-16-v1'의 총 2가지의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜 중 16비트에 대응하는 서비스 검색 프로토콜) 중 'C-16-v2'의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜 중 16비트에 대응하는 서비스 검색 프로토콜 중 제 2 버전에 대응하는 서비스 검색 프로토콜)을 사용하는 외부기기(20)에 'Message C16v2'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Welcome'이라는 리턴 메시지(RM)를 회신할 수 있다.10, a total of two service discovery protocols (SDP) of 'C-16-v2' and 'C-16-v1' ) Which uses the service discovery protocol (SDP) of the 'C-16-v2' (service discovery protocol corresponding to the second version of the service discovery protocol corresponding to 16 bits of the service discovery protocol of the C type) , The external device 20 can return a return message RM of 'Welcome'.

또한, 'C-16-v2', 'C-16-v1'의 총 2가지의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜 중 16비트에 대응하는 서비스 검색 프로토콜) 중 'C-16-v2'의 서비스 검색 프로토콜(SDP)(C 타입인 서비스 검색 프로토콜 중 16비트에 대응하는 서비스 검색 프로토콜 중 제 2 버전에 대응하는 서비스 검색 프로토콜)을 사용하는 외부기기(20)에 'Message C16v1'의 프로빙 메시지를 전송하면, 해당 외부기기(20)에서는 'Error v2'이라는 리턴 메시지(RM)를 회신할 수 있다.Among the two service discovery protocols (SDP) (service discovery protocol corresponding to 16 bits among service discovery protocols of C type), 'C-16-v2' and 'C- message C16v1 'to the external device 20 using the service discovery protocol (SDP) of the' -v2 'service discovery protocol (service discovery protocol corresponding to the second version of the service discovery protocol corresponding to 16 bits of the service discovery protocol of C type) The external device 20 can return a return message RM of 'Error v2'.

'C-16-v1'의 서비스 검색 프로토콜(SDP)을 사용하는 외부기기(20)에 대해서는 앞서 설명한 내용을 바탕으로 충분히 유추할 수 있으므로, 중복되는 설명은 생략하기로 한다.The external device 20 using the service discovery protocol (SDP) of 'C-16-v1' can be sufficiently inferred based on the above-described contents, and a duplicate description will be omitted.

이러한 상황에서, 'C-16-v1'의 서비스 검색 프로토콜을 사용하는 외부기기(20)가 본 발명에 다른 스마트기기(10)에 접근하는 경우를 가정하여 보자.In this situation, it is assumed that the external device 20 using the service discovery protocol of 'C-16-v1' accesses the other smart device 10 according to the present invention.

이러한 경우, 본 발명에 따른 판별장치(100)는 접근한 외부기기(20)를 검출하고, 검출한 외부기기(20)로 프로빙 메시지(PM)로 'Message A'를 전송할 수 있다.In this case, the determination device 100 according to the present invention can detect the accessed external device 20 and transmit 'Message A' to the detected external device 20 with the probe message PM.

그러면, 외부기기(20)에서는 리턴 메시지(RM)로 'Error C1'을 회신하고, 이를 판별장치(100)가 수신할 수 있다. 이러한 경우, 판별장치(100)는 리턴 메시지(RM)인 'Error C1'을 분석하여 검출된 외부기기(20)가 C 타입의 서비스 검색 프로토콜을 사용하는 것을 확인할 수 있다.Then, the external device 20 returns 'Error C1' to the return message RM, and the discriminating apparatus 100 can receive it. In this case, the determination apparatus 100 may analyze 'Error C1', which is the return message RM, to confirm that the detected external device 20 uses the C type service discovery protocol.

이후, 판별장치(20)는 C 타입의 서비스 검색 프로토콜에 대응하여 검출한 외부기기(20)로 프로빙 메시지(PM)로 'Message C8'를 전송할 수 있다.Thereafter, the determination device 20 may transmit 'Message C8' as a probing message (PM) to the detected external device 20 corresponding to the C type service discovery protocol.

그러면, 외부기기(20)에서는 리턴 메시지(RM)로 'Error 8'을 회신하고, 이를 판별장치(100)가 수신할 수 있다. 이러한 경우, 판별장치(100)는 리턴 메시지(RM)인 'Error 8'을 분석하여 검출된 외부기기(20)가 C 타입이며 16비트에 대응하는 서비스 검색 프로토콜을 사용하는 것을 확인할 수 있다.Then, the external device 20 returns 'Error 8' to the return message RM, and the discriminating apparatus 100 can receive it. In this case, the discriminator 100 can confirm that the external device 20 detected by analyzing 'Error 8' which is the return message RM is of the C type and uses the service discovery protocol corresponding to 16 bits.

이후, 판별장치(20)는 C 타입이며 16비트에 대응하는 서비스 검색 프로토콜에 대응하여 검출한 외부기기(20)로 프로빙 메시지(PM)로 'Message C16v2'를 전송할 수 있다.Thereafter, the determining device 20 can transmit 'Message C16v2' as a probing message (PM) to the external device 20 detected in correspondence with the service discovery protocol corresponding to 16 bits.

그러면, 외부기기(20)에서는 리턴 메시지(RM)로 'Error v1'을 회신하고, 이를 판별장치(100)가 수신할 수 있다. 이러한 경우, 판별장치(100)는 리턴 메시지(RM)인 'Error v1'을 분석하여 검출된 외부기기(20)가 C 타입이며 16비트에 대응하고 제 1 버전의 서비스 검색 프로토콜, 즉 'C-16-v1'을 사용하는 것을 확인할 수 있다.Then, the external device 20 returns 'Error v1' to the return message RM, and the discriminating apparatus 100 can receive it. In this case, the discriminator 100 determines that the external device 20, which is detected by analyzing the 'Error v1' which is the return message RM, is of the C type and corresponds to 16 bits and the first version of the service discovery protocol, 16-v1 'is used.

도 7 내지 도 10에서 설명한 내용은 본 발명의 이해를 돕기 위해 가정한 것으로 본 발명이 이에 한정되는 것은 아닐 수 있다.7 to 10 are assumed to facilitate understanding of the present invention, and the present invention is not limited thereto.

도 11은 본 발명에 따른 서비스 검색 프로토콜 판별방법을 구현하기 위한 알고리즘의 슈도코드의 일례를 설명하기 위한 도면이다. 도 12는 현재 상태에 따른 다음 프로빙 메시지의 구성에 대해 밀리 머신으로 설명한 도면이다. 도 13은 각 상태에 대응하는 결정 모델의 일례를 설명하기 위한 도면이다. 이하에서는 이상에서 설명한 부분의 설명은 생략될 수 있다.11 is a view for explaining an example of a pseudo code of an algorithm for implementing a service search protocol discrimination method according to the present invention. FIG. 12 is a diagram illustrating a configuration of a next probing message according to a current state with a millimeter. 13 is a diagram for explaining an example of a decision model corresponding to each state. In the following, the description of the parts described above may be omitted.

도 11을 살펴보면, 본 발명에 따른 서비스 검색 프로토콜 판별방법을 구현하기 위한 알고리즘은 detectSDP, updateProbingState 및 getProbeResult의 세 파트를 포함할 수 있다.Referring to FIG. 11, the algorithm for implementing the service discovery protocol determination method according to the present invention may include three parts: detectSDP, updateProbingState, and getProbeResult.

검출된 외부기기(20)의 서비스 검색 프로토콜(SDP)를 파악하기 위해서 판별장치(100)의 분석부(104)는 detectSDP를 호출할 수 있다.The analyzing unit 104 of the discriminating apparatus 100 can call detectSDP to grasp the service discovery protocol (SDP) of the detected external device 20. [

프로빙 메시지 전송 및 리턴 메시지의 수신 과정을 반복하기 이전에 외부기기(20)의 서비스 검색 프로토콜(SDP) 모델을 빈 속성들로 채워서 가장 간단한 netcat메시지를 구성할 수 있다. 아울러, 구성한 메시지를 전송함으로써 프로빙 메시징을 진행할 수 있다.The simplest netcat message can be constructed by filling the service discovery protocol (SDP) model of the external device 20 with bean attributes before repeating the transmission of the probe message and the reception of the return message. In addition, probing messaging can be performed by transmitting the composed message.

프로빙 메시징을 수행하는 과정에 분석부(104)는 회신 받은 메시지를 분석하여 현재 타깃 서비스 검색 프로토콜(SDP) 모델을 업데이트 시킬 수 있다.In the process of performing the probing messaging, the analyzer 104 may update the current target service discovery protocol (SDP) model by analyzing the received message.

그 다음 단계는 현재 타깃 서비스 검색 프로토콜(SDP) 모델을 확인함으로써 타깃 서비스 검색 프로토콜(SDP)을 파악할 수 있는지 확인할 수 있다.The next step is to verify that the Target Service Discovery Protocol (SDP) can be grasped by checking the current Target Service Discovery Protocol (SDP) model.

만약, 타깃 서비스 검색 프로토콜(SDP)을 확인할 수 없는 상황에서는 분석부(104)는 검색부(105)에게 새로운 프로빙 메시지를 요청함으로써 이 과정을 계속 진행하는 것이 가능하다.If the target service discovery protocol (SDP) can not be confirmed, the analysis unit 104 can continue the process by requesting the search unit 105 for a new probing message.

예를 들어, 타깃 외부기기(20), 즉 검출된 외부기기(20)의 서비스 검색 프로토콜(SDP)와 포트에 관한 상세내용이 데이터베이스(101)에 저장되어 있다면 다음 프로빙 메시지는 이미 알고 있는 서비스 검색 프로토콜(SDP) 관련 내용을 포함하는 것이 가능할 수 있다.For example, if details of the service discovery protocol (SDP) and port of the target external device 20, i.e., the detected external device 20, are stored in the database 101, It may be possible to include protocol (SDP) related content.

또한, 타깃 외부기기(20)로부터 회신되는 리턴 메시지(RM)로 타깃 외부기기(20)가 같은 버전을 사용하는지 아닌지를 파악 할 수 있다.It is also possible to determine whether the target external device 20 uses the same version with the return message RM returned from the target external device 20. [

다음 프로빙 메시지는 'getProbeSpec'프로시져와 맵핑되며 이는 'detectSDP'프로시져로부터 호출될 수 있다.The following probing message is mapped to the 'getProbeSpec' procedure which can be called from the 'detectSDP' procedure.

도 12는 현재 상태에 따른 다음 프로빙 메시지 결정 모델을 밀리 머신으로 보여주고 있다.FIG. 12 shows the following probing message decision model according to the current state as a millimeter.

결정 모델에서는 각 원은 타깃 외부기기(20)가 있을 수 있는 상태를 표현하고 있다.In the decision model, each circle represents a state in which the target external device 20 can exist.

각 원을 잇고 있는 선은 입력과 출력을 포함하고 있다.The line connecting each circle contains input and output.

결정 모델에서 입력은 다음 프로브 메시지를 의미하게 되며 출력은 타깃 외부기기(20)로부터 돌아오는 리턴 메시지를 의미할 수 있다.In the decision model, the input means the next probe message, and the output may refer to a return message coming from the target external device 20.

출력 값은 여러 조건을 표현할 수 있으며, 이는 logical operator AND (&) or OR (|)로 표시되는 것이 가능할 수 있다.Output values can represent multiple conditions, which may be possible to be represented by the logical operator AND (&) or OR (|).

다음 프로브 메시지로는 port_scansdp_msg의 두 가지 메시지 클래스가 정의될 수 있다.The following probe messages can define two message classes: port_scan and sdp_msg .

첫 번째 클래스인 port_scan은 UNIX의 NetCat명령어와 유사하며 이는 포트 스캐닝을 하고 어떤 서비스가 그 포트를 사용 중인지 파악하기 위해서 사용될 수 있다.The first class, port_scan, is similar to the UNIX NetCat command, which can be used to do port scanning and determine which services are using that port.

만약 해당 포트에서 어떤 서비스가 실행중이라면 타깃 외부기기(20)에서는 base 프로토콜로 해당 서비스 시그니쳐(e.g. UDP/SSDP)로 답변을 리턴할 수 있다.If a service is running on the corresponding port, the target external device 20 can return a response using the corresponding service signature (e.g., UDP / SSDP) in the base protocol.

만약 서비스가 파악되지 않는다면 시그니쳐는 wildcard인 *로 표시될 수 있다.If the service is not known, the signature may be denoted by a wildcard *.

다음 프로빙 메시지가 port_scan이라면 포트 스캐닝 메시지가 오름차순 또는 내림차순으로 허용되는 범위까지 보내질 수 있다.If the next probing message is port_scan then the port scanning message can be sent to the allowed range in ascending or descending order.

두 번째 클래스인 sdp_msg는 프로토콜 메시지의 한 종류일 수 있다. 예를 들어 SLPv2의 경우 SrvRqst, SrvRply, SrvReg등으로 sdp_msg를 구성할 수 있다.The second class, sdp_msg , can be a kind of protocol message. For example, in SLPv2, you can configure sdp_msg with SrvRqst, SrvRply, SrvReg, and so on.

Sdp_msg가 결정되고 유저 기기, 즉 스마트기기(10)는 (e.g. SrvRqst에서 SrvReg) 수정된 프로빙 메시지(PM)의 케릭터 인코딩을 변경해서 전송할 수 있다. The Sdp_msg is determined and the user equipment, i.e., the smart device 10, can change and transmit the character encoding of the modified probe message PM (e.g. SrvReg at SrvRqst).

데이터베이스(101)에 어떻게 sdp_msg을 수정할지 알 수 있으며 프로토콜 엔지니어에 의해 수정될 수 있다.How to modify sdp_msg in the database 101 is known and can be modified by the protocol engineer.

반복적으로 프로빙 과정을 끝내고 나면 결과는 성공이거나 실패 상태로 도달할 수 있다.After repeatedly terminating the probing process, the results can be successful or fail.

성공 상태로 도달하면 스마트기기(10)는 타깃 외부기기(20)의 서비스 검색 프로토콜(SDP)의 종류(타입)와 버전을 파악한 것이다. 그러므로 프로토콜 상세내역이 데이터베이스(101)에서 로딩되거나, 글로벌 서비스 검색 프로토콜(SDP) 저장소(Repository)에게 요청할 수 있다.Upon reaching the success status, the smart device 10 grasps the type (version) and version of the service discovery protocol (SDP) of the target external device 20. The protocol details may therefore be loaded in the database 101 or may be requested from the Global Service Discovery Protocol (SDP) repository.

반면에 실패 상태로 도달하면 세 가지 시나리오를 의미할 수 있다.On the other hand, reaching a failure state can mean three scenarios.

첫 번째 시라니오는 서비스 검색 프로토콜(SDP)이 정해졌지만 버전을 파악하지 못한 경우일 수 있다.The first scenario might be when the Service Discovery Protocol (SDP) is set but it does not know the version.

이러한 경우는 상태 전이가 SDP_ERROR 또는 SDP_NO_REPLY로부터 오는 경우에 해당될 수 있다.This case can be true if the state transition comes from SDP_ERROR or SDP_NO_REPLY.

서비스 검색 프로토콜(SDP)의 종류는 파악했기 때문에 SDP update를 진행할 수 있다.Since we know the type of service discovery protocol (SDP), we can proceed with SDP update.

두 번째 경우는 서비스 검색 프로토콜(SDP)을 실행할 수 있지만 타입이 정해지지 않은 경우에 대응될 수 있다.In the second case, it is possible to execute the service discovery protocol (SDP), but it can be dealt with when the type is not specified.

이러한 경우는 상태 전이가 NO_REPLY 또는 UNKNOWN_SIG로부터 오는 경우에 대응될 수 있다.This case can be corresponded to when the state transition comes from NO_REPLY or UNKNOWN_SIG.

지금까지 프로빙을 통해 얻은 결과를 토대로 인터넷을 통해 서비스 검색 프로토콜(SDP)을 파악할 수 있다.Based on the results obtained through probing so far, the service discovery protocol (SDP) can be grasped through the Internet.

세 번째 경우는 서비스 검색 프로토콜(SDP)이 타깃 외부기기(20)에서 실행되지 않는 경우이며, 이러한 경우에서 타깃 외부기기(20)를 더미 호스트라고 할 수 있다. 이 경우는 상태 전이가 NO_SDP로부터 오는 경우에 대응될 수 있다.In the third case, the service discovery protocol (SDP) is not executed in the target external device 20. In this case, the target external device 20 may be referred to as a dummy host. This case may correspond to a case where the state transition comes from NO_SDP.

도 13을 살펴보면, 프로빙 메시지 결정 모델의 상태에 대해 이해할 수 있을 것이다.Referring to FIG. 13, the state of the probing message decision model will be understood.

이와 같이, 상술한 본 발명의 기술적 구성은 본 발명이 속하는 기술분야의 당업자가 본 발명의 그 기술적 사상이나 필수적 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다.As described above, it is to be understood that the technical structure of the present invention can be embodied in other specific forms without departing from the spirit and essential characteristics of the present invention.

그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적인 것이 아닌 것으로서 이해되어야 하고, 본 발명의 범위는 전술한 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 등가개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.It should be understood, therefore, that the embodiments described above are to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than the foregoing description, And all changes or modifications derived from equivalents thereof should be construed as being included within the scope of the present invention.

Claims (11)

외부기기를 검출하는 검출단계;
상기 검출단계에서 검출된 외부기기로 제 1 프로빙 메시지(First Probing Message)를 전송하는 단계;
상기 검출된 외부기기로부터 상기 제 1 프로빙 메시지에 대응하는 제 1 리턴 메시지(First Return Message)를 수신하는 단계;
상기 제 1 리턴 메시지를 데이터베이스(Database)에 미리 저장된 정보와 비교하고 분석하여, 상기 검출된 외부기기의 서비스 검색 프로토콜(Service Discovery Protocol, SDP)의 제 1 후보 범위를 설정하는 단계;
상기 제 1 프로빙 메시지로 상기 검출된 외부기기의 서비스 검색 프로토콜을 특정하지 못한 경우, 상기 검출된 외부기기로 제 2 프로빙 메시지(Second Probing Message)를 전송하는 단계;
상기 검출된 외부기기로부터 상기 제 2 프로빙 메시지에 대응하는 제 2 리턴 메시지(Second Return Message)를 수신하는 단계;
상기 제 2 리턴 메시지를 상기 데이터베이스에 미리 저장된 정보와 비교하고 분석하여, 상기 검출된 외부기기의 서비스 검색 프로토콜의 제 2 후보 범위를 설정하는 단계;
를 포함하는 스마트기기의 서비스 검색 프로토콜 판별방법.
A detecting step of detecting an external device;
Transmitting a first probing message to an external device detected in the detecting step;
Receiving a first return message corresponding to the first probing message from the detected external device;
Comparing the first return message with information previously stored in a database and analyzing the first return message to set a first candidate range of a service discovery protocol (SDP) of the detected external device;
Transmitting a second probing message to the detected external device if the first probing message fails to specify the detected service discovery protocol of the external device;
Receiving a second return message corresponding to the second probing message from the detected external device;
Comparing the second return message with information previously stored in the database and analyzing the second return message to set a second candidate range of the detected service discovery protocol of the external device;
The method comprising the steps of:
제 1 항에 있어서,
상기 제 2 후보 범위는 상기 제 1 후보 범위 내에서 설정되는, 스마트기기의 서비스 검색 프로토콜 판별방법.
The method according to claim 1,
Wherein the second candidate range is set within the first candidate range.
제 1 항에 있어서,
상기 제 1 리턴 메시지 및 상기 제 2 리턴 메시지 중 적어도 하나는 에러 메시지(Error Message)인, 스마트기기의 서비스 검색 프로토콜 판별방법.
The method according to claim 1,
Wherein at least one of the first return message and the second return message is an error message.
제 1 항에 있어서,
상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 검출된 외부기기의 서비스 검색 프로토콜의 종류를 질의하는 메시지이고,
상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 검출된 외부기기의 서비스 검색 프로토콜의 버전(Version)을 질의하는 메시지인, 스마트기기의 서비스 검색 프로토콜 판별방법.
The method according to claim 1,
At least one of the first probing message and the second probing message is a message for inquiring the type of a service discovery protocol of the detected external device,
Wherein at least one of the first probing message and the second probing message is a message querying a version of a service discovery protocol of the detected external device.
제 1 항에 있어서,
상기 제 2 프로빙 메시지는 상기 제 1 프로빙 메시지로부터 업데이트(Update)된 메시지인, 스마트기기의 서비스 검색 프로토콜 판별방법.
The method according to claim 1,
Wherein the second probing message is a message updated from the first probing message.
서비스 검색 프로토콜(Service Discovery Protocol, SDP)에 관련된 정보를 저장하는 데이터베이스(Database);
프로빙 메시지(Probing Message)를 구성하는 메시지 구성부;
상기 프로빙 메시지를 외부기기로 전송하고, 상기 외부기기로부터 상기 프로빙 메시지에 대응하는 리턴 메시지(Return Message)를 수신하는 메시지 송수신부; 및
상기 메시지 송수신부가 수신한 상기 리턴 메시지를 분석한 정보를 상기 데이터베이스에 저장된 정보와 비교하여 상기 외부기기의 서비스 검색 프로토콜을 판별하는 분석부;
를 포함하며,
상기 메시지 구성부는 제 1 프로빙 메시지(First Probing Message)를 구성하고,
상기 메시지 송수신부는 상기 제 1 프로빙 메시지를 상기 외부기기로 전송하고, 상기 외부기기로부터 상기 제 1 프로빙 메시지에 대응하는 제 1 리턴 메시지(First Return Message)를 수신하고,
상기 분석부는 상기 제 1 리턴 메시지를 상기 데이터베이스에 미리 저장된 정보와 비교하고 분석하여, 상기 외부기기의 서비스 검색 프로토콜의 제 1 후보 범위를 설정하고,
상기 분석부가 상기 제 1 프로빙 메시지로 상기 외부기기의 서비스 검색 프로토콜을 특정하지 못한 경우, 상기 메시지 구성부는 제 2 프로빙 메시지(Second Probing Message)를 구성하고,
상기 메시지 송수신부는 상기 외부기기로 상기 제 2 프로빙 메시지를 전송하고, 상기 외부기기로부터 상기 제 2 프로빙 메시지에 대응하는 제 2 리턴 메시지(Second Return Message)를 수신하고,
상기 분석부는 상기 제 2 리턴 메시지를 상기 데이터베이스에 미리 저장된 정보와 비교하고 분석하여, 상기 외부기기의 서비스 검색 프로토콜의 제 2 후보 범위를 설정하는, 스마트기기의 서비스 검색 프로토콜 판별장치.
A database for storing information related to a service discovery protocol (SDP);
A message constructing a probing message;
A message transmission / reception unit transmitting the probe message to an external device and receiving a return message corresponding to the probe message from the external device; And
An analysis unit for comparing the analyzed information of the return message received by the message transmission / reception unit with information stored in the database to determine a service discovery protocol of the external device;
/ RTI >
The message composing unit configures a first probing message,
The message transmission / reception unit transmits the first probing message to the external device, receives a first return message corresponding to the first probing message from the external device,
Wherein the analyzer compares the first return message with information previously stored in the database and analyzes the first return message to set a first candidate range of the service discovery protocol of the external device,
If the analysis unit fails to specify the service discovery protocol of the external device in the first probing message, the message configuring unit configures a second probing message,
The message transmitting and receiving unit transmits the second probing message to the external device, receives a second return message corresponding to the second probing message from the external device,
Wherein the analyzer compares the second return message with information previously stored in the database and analyzes the second return message to set a second candidate range of the service discovery protocol of the external device.
삭제delete 제 6 항에 있어서,
상기 제 2 후보 범위는 상기 제 1 후보 범위 내에서 설정되는, 스마트기기의 서비스 검색 프로토콜 판별장치.
The method according to claim 6,
And the second candidate range is set within the first candidate range.
제 6 항에 있어서,
상기 제 1 리턴 메시지 및 상기 제 2 리턴 메시지 중 적어도 하나는 에러 메시지(Error Message)인, 스마트기기의 서비스 검색 프로토콜 판별장치.
The method according to claim 6,
Wherein at least one of the first return message and the second return message is an error message.
제 6 항에 있어서,
상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 외부기기의 서비스 검색 프로토콜의 종류를 질의하는 메시지이고,
상기 제 1 프로빙 메시지 및 상기 제 2 프로빙 메시지 중 적어도 하나는 상기 외부기기의 서비스 검색 프로토콜의 버전(Version)을 질의하는 메시지인, 스마트기기의 서비스 검색 프로토콜 판별장치.
The method according to claim 6,
At least one of the first probing message and the second probing message is a message for inquiring the type of a service discovery protocol of the external device,
Wherein at least one of the first probing message and the second probing message is a message inquiring a version of a service discovery protocol of the external device.
제 6 항에 있어서,
상기 제 2 프로빙 메시지는 상기 제 1 프로빙 메시지로부터 업데이트(Update)된 메시지인, 스마트기기의 서비스 검색 프로토콜 판별장치.
The method according to claim 6,
Wherein the second probing message is an updated message from the first probing message.
KR1020160108584A 2016-08-25 2016-08-25 Service Discovery Protocol Probing Apparatus and Method for Smart Device KR101742690B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020160108584A KR101742690B1 (en) 2016-08-25 2016-08-25 Service Discovery Protocol Probing Apparatus and Method for Smart Device
PCT/KR2016/010865 WO2018038314A1 (en) 2016-08-25 2016-09-28 Device and method for determining service discovery protocol of smart device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160108584A KR101742690B1 (en) 2016-08-25 2016-08-25 Service Discovery Protocol Probing Apparatus and Method for Smart Device

Publications (1)

Publication Number Publication Date
KR101742690B1 true KR101742690B1 (en) 2017-06-15

Family

ID=59217314

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160108584A KR101742690B1 (en) 2016-08-25 2016-08-25 Service Discovery Protocol Probing Apparatus and Method for Smart Device

Country Status (2)

Country Link
KR (1) KR101742690B1 (en)
WO (1) WO2018038314A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6209675B2 (en) * 2013-05-01 2017-10-04 エルジー エレクトロニクス インコーポレイティド Method and apparatus for performing a wireless docking service
EP3038326A1 (en) * 2014-12-22 2016-06-29 Orange Method, devices, system and corresponding computer program for service discovery
KR101665852B1 (en) * 2015-02-11 2016-10-12 한국과학기술원 Method and apparatus for providing service discovery, and computer readable medium for the same

Also Published As

Publication number Publication date
WO2018038314A1 (en) 2018-03-01

Similar Documents

Publication Publication Date Title
KR102146031B1 (en) Chatbot system based on multi-domain and method for providing chatbot service
CN103037476A (en) Control method for wireless network access and control device for wireless network access
CN110716850A (en) Page testing method, device and system and storage medium
EP3633880A1 (en) Radio frequency interference processing method and electronic device
CN108958600A (en) A kind of smart machine control method, device, gateway and communication equipment
EP3000219B1 (en) Access to data source via proxy
CN113207115B (en) Mobile terminal and network searching control method
KR101742690B1 (en) Service Discovery Protocol Probing Apparatus and Method for Smart Device
CN106503023A (en) The method and device of prompting nearby friends
CN110933770B (en) Connection request sending method and device, storage medium and electronic equipment
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
US20060245383A1 (en) Service execution using multiple devices
CN111615101B (en) IMS registration method, device, storage medium and electronic terminal
CN114390574A (en) Wireless network throughput testing method, device and computer readable storage medium
JP2020194988A (en) Communication control method and communication system
KR102112627B1 (en) Apparatus and Method for Displaying Indicator According to Interwork Network
CN112379905A (en) Kernel upgrading method and device, terminal and storage medium
CN109548028B (en) Base station type identification method, device, terminal and computer readable storage medium
CN112130928A (en) Automatic searching method, device, equipment and storage medium for Linux system sound card
US20160050576A1 (en) Ensuring the performance of normal performance carriers
CN116684467B (en) Data acquisition method, electronic device and storage medium
JP2022546792A (en) Access point name setting method, device and readable storage medium
KR102417759B1 (en) Method and device for ddos detection using metaheuristic clustering
KR101386370B1 (en) Method for controlling device performance based on policy conflict resoultion in machine to machine network
CN112671569B (en) Network management method and system based on configuration classification

Legal Events

Date Code Title Description
GRNT Written decision to grant