KR20190057254A - Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal - Google Patents

Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal Download PDF

Info

Publication number
KR20190057254A
KR20190057254A KR1020190058792A KR20190058792A KR20190057254A KR 20190057254 A KR20190057254 A KR 20190057254A KR 1020190058792 A KR1020190058792 A KR 1020190058792A KR 20190058792 A KR20190058792 A KR 20190058792A KR 20190057254 A KR20190057254 A KR 20190057254A
Authority
KR
South Korea
Prior art keywords
wps
mode
group
group owner
prefix
Prior art date
Application number
KR1020190058792A
Other languages
Korean (ko)
Other versions
KR102045944B1 (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 KR1020190058792A priority Critical patent/KR102045944B1/en
Publication of KR20190057254A publication Critical patent/KR20190057254A/en
Application granted granted Critical
Publication of KR102045944B1 publication Critical patent/KR102045944B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for Wi-Fi connection using Wi-Fi protected setup (WPS) in a portable terminal comprises: a process of entering a group owner mode of Wi-Fi direct when activation of WPS is confirmed to be requested; a process of entering a WPS session mode operable in a WPS registrar mode when entering the group owner mode; a process of searching whether an access point (AP) with an activated WPS session of the WPS registrar mode or a device with an activated group owner mode exists in the vicinity; and a process of deactivating the entered WPS registrar mode and group owner mode if an AP with an activated WPS registrar mode is searched as a result of the searching, and activating a WPS session to operate in a WPS enrollee mode to connect to the searched AP.

Description

휴대단말기에서 WPS(Wi-Fi Protecte d Setup)을 이용한 와이파이 연결 방법 및 장치{METHOD AND APPARATUS FOR WI-FI CONNECTING USING WI-FI PROTECTED SETUP IN A PORTABLE TERMINAL}TECHNICAL FIELD [0001] The present invention relates to a Wi-Fi Protected Setup (WPS) and a Wi-Fi Protected Setup (WPS)

본 발명은 무선 통신에 관한 것으로, 보다 상세하게는 WPS(Wi-Fi Protected Setup)를 이용하여 와이파이(Wi-Fi) 통신을 제공하는 장치들간에 손쉽게 연결할 수 있는 발명에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to wireless communication, and more particularly, to an invention capable of easily connecting Wi-Fi communication devices using WPS (Wi-Fi Protected Setup).

와이파이(Wi-Fi) 연결을 통한 종래의 무선 통신은 와이파이 기능을 제공하는 장치가 AP(Access Point)로의 접속을 통해 무선으로 통신을 이용하는 것을 주요 목적으로 제안되었기 때문에, 와이파이 기능을 제공하는 장치들 간에 직접 통신에 대한 배려가 부족하였다.Conventional wireless communication through a Wi-Fi connection has been proposed for the main purpose of a device providing a Wi-Fi function to use communication wirelessly through access to an AP (Access Point), so that devices providing Wi- There was a lack of consideration for direct communication between the two.

기존의 와이파이가 장치들간의 직접적인 통신 기능을 원할하게 제공하지 못하는 점을 고려하여, 와이파이 연합(Wi-Fi Alliance)은 와이파이 다이렉트(Wi-Fi Direct) 또는 와이파이 P2P(Wi-Fi P2P)로 명명되는 기능을 제안하였다.The Wi-Fi Alliance is named Wi-Fi Direct or Wi-Fi P2P (Wi-Fi P2P), because existing Wi-Fi does not provide the direct communication capabilities between devices Function.

이러한 와이파이 다이렉트는 기존의 와이파이와의 호환성을 제공하며, AP없이도 와이파이 장치들끼리 직접 연결하여 통신할 수 있는 기능(예를 들어, Peer to Peer 통신 기능)을 제공한다.This Wi-Fi Direct provides compatibility with existing Wi-Fi and provides the ability to directly connect Wi-Fi devices to each other without requiring an AP (for example, peer-to-peer communication).

한편, 와이파이 다이렉트는 종래의 와이파이 기능, 즉 레거시 와이파이(legacy Wi-Fi) 기능과의 호환성을 염두에 두고 제안된 기술이기 때문에, 레거시 와이파이 장치들은 기본적으로 WPS(Wi-Fi Protected Setup)를 이용한 연결 방식을 지원한다. Meanwhile, since Wi-Fi Direct is a proposed technology in consideration of compatibility with conventional Wi-Fi function, i.e., legacy Wi-Fi function, legacy Wi-Fi devices are basically connected using Wi-Fi Protected Setup (WPS) Method.

WPS 연결 방식은 와이파이 연결을 시도하는 장치가 PBC (Push Button Configuration) 방식을 이용한 버튼의 입력 또는 PIN 방식을 이용한 PIN 정보의 입력을 통해서, 손쉽게 와이파이를 이용한 무선 통신 기능을 제공받을 수 있도록 하는 방식이다. The WPS connection method is a method in which a device attempting to establish a Wi-Fi connection can easily receive a wireless communication function using a WiBro by inputting a button using a PBC (Push Button Configuration) method or inputting PIN information using a PIN method .

WPS 세션(Session)이 활성화되면 Wi-Fi 연결을 시도하는 장치는 주파수 및 채널 스캐닝 등을 통해 AP의 존재를 파악한 후에, 발견된 AP 들 중에서 WPS 세션이 활성화된 AP와의 WPS Registration Protocol을 시작하고, 이를 통해 AP 의 Credentials (SSID, Security Info, Network Key)를 획득하고 획득된 Credentials 을 이용하여 자동으로 해당 AP에 접속한다.When a WPS session is activated, a device attempting to establish a Wi-Fi connection detects the presence of an AP through frequency and channel scanning, and then initiates a WPS Registration Protocol with the AP with which the WPS session is activated, It obtains the Credentials (SSID, Security Info, Network Key) of the AP and automatically accesses the AP using the obtained Credentials.

한편, 전술한 이러한 WPS 연결 방식은 편리하게 와이파이를 이용한 무선 통신 기능을 제공받을 수 있는 장점이 있기 때문에, 레거시 와이파이 뿐만 아니라 와이파이 다이렉트 기능을 이용할 경우에도 WPS 연결 방식이 지원된다면, 와이파이 다이렉트 사용의 편리함을 증대할 수 있을 것이다.Meanwhile, since the WPS connection method described above has an advantage of being able to receive a wireless communication function using a WiFi conveniently, if the WPS connection method is supported not only in the legacy WiFi but also in the WiFi direct function, the convenience of WiFi direct use .

그런데, 와이파이 다이렉트는 IEEE 802.11g 이상(예를 들어, IEEE 802.11g 또는 IEEE 802.11n)의 스펙을 준수하는 장치만이 이용할 수 있기 때문에, 레거시 와이파이 기능만을 제공하는 장치(예를 들어, IEEE 802.11b의 스펙만을 준수하는 장치)는 와이파이 다이렉트 기능을 사용할 수 없게 된다. However, since WiFiDirect is available only to devices conforming to the IEEE 802.11g or higher specification (for example, IEEE 802.11g or IEEE 802.11n), devices providing only legacy WiFi functions (for example, IEEE 802.11b Devices) will not be able to use Wi-Fi Direct.

이렇게 모든 와이파이 장치가 와이파이 다이렉트 기능을 지원하지는 않고 있기 때문에, 와이파이 다이렉트의 연결에도 WPS 버튼을 이용한 연결방식을 제공하고자 할 경우에는 와이파이 연결을 위한 WPS 버튼과 와이파이 다이렉트 연결을 위한 WPS 버튼을 별도로 제공할 필요가 있다.Since all Wi-Fi devices do not support Wi-Fi Direct, so if you want to provide a WPS button connection method for Wi-Fi direct connection, you can also provide WPS button for Wi-Fi connection and WPS button for Wi-Fi direct connection separately There is a need.

그런데, 레거시 와이파이 기능(예를 들어, AP 접속을 통한 무선 통신 이용)과 와이파이 다이렉트 기능(예를 들어, 와이파이 장치들간의 P2P 통신)의 사용을 위한 WPS 버튼을 각자 별도로 제공한다면, 간단한 절차를 통해 와이파이 또는 와이파이 다이렉트 기능을 사용하도록 하는 애초의 취지에 부합하지 못하게 되는 문제점이 있다. 더욱이, 사용자 입장에서는 하나의 WPS 버튼만을 선택하는 것 만으로 연결 대상에 해당하는 장치의 특성에 따라 레거시 와이파이 또는 와이파이 다이렉트가 선별적으로 연결되도록 하는 일종의 와이파이 통합 기능을 제공받는 것이 편리할 것이다. However, if you provide separate WPS buttons for legacy Wi-Fi functionality (for example, using wireless communication via an AP connection) and Wi-Fi direct functionality (for example, P2P communication between Wi-Fi devices) There is a problem in that it does not meet the original purpose of using the Wi-Fi direct or Wi-Fi direct function. Further, it is convenient for a user to provide a kind of WiFi integration function that selectively connects legacy WiFi or WiFi direct according to the characteristics of a device corresponding to a connection target by selecting only one WPS button.

따라서, 레거시 와이파이 연결에만 적용되었던 WPS 연결방식을 와이파이 다이렉트 연결에도 적용하면서, 하나의 WPS 연결 요청 메뉴(예를 들어, PBC 연결방식의 WPS 버튼)만으로 연결 대상 장치의 종류에 따라 레거시 와이파이 또는 와이파이 다이렉트가 선별적으로 자동 연결되도록 하는 발명을 제안하고자 한다. 즉, 와이파이 장치의 와이파이 지원 규격 및 와이파이 장치의 속성과 상관없이 WPS 연결을 활성화하는 것만으로 와이파이 연결과 와이파이 다이렉트 연결을 모두 지원할 수 있는 WPS 연결방식을 제안하고자 한다.Therefore, the WPS connection method applied only to the legacy Wi-Fi connection is applied to the Wi-Fi direct connection, and only one WPS connection request menu (for example, the WPS button of the PBC connection method) is used to connect the legacy Wi- To be selectively connected automatically. That is, we propose a WPS connection method that can support both Wi-Fi connection and Wi-Fi direct connection by activating the WPS connection irrespective of the Wi-Fi support specification of the Wi-Fi device and the property of the Wi-Fi device.

본 발명은 휴대단말기에서 WPS(Wi-Fi Protected Setup)을 이용한 와이파이 연결 방법에 있어서, WPS의 활성화가 요청된 것으로 확인되면 와이파이 다이렉트의 그룹 오너 모드로 진입하는 과정과, 상기 그룹 오너 모드로 진입하면, WPS 레지스트라 모드(Registrar mode)로 동작할 수 있는 WPS 세션 모드로 진입하는 과정과, 주변에 WPS Registrar mode의 WPS 세션이 활성화된 AP(Access Point) 또는 그룹 오너 모드가 활성화된 장치가 존재하는지 탐색하는 과정과, 상기 탐색 결과 WPS 레지스트라 모드가 활성화된 AP가 탐색되면 상기 진입한 WPS 레지스트라 모드 및 그룹 오너 모드를 비활성화하고, WPS 엔롤리 모드(Enrollee mode)로 동작하기 위한 WPS 세션을 활성화하여 상기 탐색된 AP에 접속하는 과정을 포함한다.The present invention provides a Wi-Fi connection method using Wi-Fi Protected Setup (WPS) in a portable terminal, comprising the steps of: entering a group owner mode of Wi-Fi direct when it is determined that activation of a WPS is requested; , Entering a WPS session mode capable of operating in a WPS registrar mode, checking whether there is an AP (Access Point) in which a WPS session in the WPS Registrar mode is activated or a device in which a group owner mode is activated And activating the WPS registrar mode and the group owner mode to activate the WPS registrar mode and the WPS session mode to operate in the WPS enrollee mode, Lt; RTI ID = 0.0 > AP. ≪ / RTI >

또한, 본 발명은 휴대단말기에서 WPS(Wi-Fi Protected Setup)을 이용한 와이파이 연결 장치에 있어서, IEEE 802.11 의 규격에 따른 근거리 무선 통신 기능을 제공하는 와이파이 모듈과, 사용자의 키 입력을 입력 받는 키입력부 또는 표시부와, 상기 키입력부 또는 표시부를 통해 WPS의 활성화가 요청된 것으로 확인되면 와이파이 다이렉트의 그룹 오너 모드로 진입한 후에 WPS 레지스트라 모드(Registrar mode)로 동작할 수 있는 WPS 세션 모드로 진입하고, 주변에 WPS Registrar mode의 WPS 세션이 활성화된 AP(Access Point) 또는 그룹 오너 모드가 활성화된 장치가 존재하는지 탐색하고, 상기 탐색 결과 WPS 레지스트라 모드가 활성화된 AP가 탐색되면 상기 진입한 WPS 레지스트라 모드 및 그룹 오너 모드를 비활성화하고, WPS 엔롤리 모드(Enrollee mode)로 동작하기 위한 WPS 세션을 활성화하여 상기 탐색된 AP에 접속하도록 제어하는 제어부를 포함한다.According to another aspect of the present invention, there is provided a Wi-Fi connection apparatus using Wi-Fi Protected Setup (WPS) in a wireless terminal, the Wi- Or a display unit. If it is determined that activation of the WPS is requested through the key input unit or the display unit, the WPS direct mode enters a WPS session mode in which a WPS registrar mode can be operated after entering a group owner mode of Wi-Fi direct, If an access point (AP) in which a WPS session in the WPS Registrar mode is activated or a device in which a group owner mode is activated exists, if an AP in which the WPS registrar mode is activated is searched for, the entered WPS registrar mode and group Disable owner mode, enable WPS session to operate in WPS Enrollee mode And to control access to the searched AP.

와이파이 다이렉트가 보편적으로 이용되더라도 아직까지는 레거시 와이파이 기능만을 지원하는 장치(예를 들어, 스마트폰)들이 존재하는데, 와이파이 다이렉트 기능을 지원하는 장치가 WPS 연결 방식을 통해 와이파이 다이렉트 기능을 지원하는 장치와 와이파이 다이렉트 기능을 지원하지 않는 장치와 연결하고자 할 경우, 장치들과의 연결 호환성을 개선하는 효과가 있다.Even though Wi-Fi direct is widely used, devices that support only legacy Wi-Fi functions (for example, smart phones) exist. However, devices supporting Wi-Fi direct function can not use Wi-Fi direct- When connecting to a device that does not support the direct function, the compatibility with the devices is improved.

또한, WPS 연결방식을 이용하여 와이파이 다이렉트 기능의 사용을 가능하게 하는 본 발명은 기존 레거시 와이파이에 대한 WPS 연결방식과도 완벽히 호환되는 장점이 있다.In addition, the present invention, which enables the use of the WIFI direct function using the WPS connection method, is also fully compatible with the WPS connection method for existing legacy WiFi.

또한, 간단히 WPS의 활성화만을 통해 와이파이 다이렉트 연결 기능을 제공하는 본 발명은 장치 탐색(Device Discovery), 서비스 탐색(Service Discovery) 및 그룹 생성 과정을 통해 연결 대상에 해당하는 장치와 와이파이 다이렉트 연결하는 기존의 와이파이 다이렉트 연결 방법에 비해 연결시간이 단축되는 효과가 있다.In addition, the present invention provides a WiFi direct connection function simply by activating the WPS. The present invention provides a WiFi direct connection function through a device discovery, a service discovery, and a group creation process. The connection time is shortened compared with the Wi-Fi direct connection method.

도 1은 와이파이 P2P 기능의 실행을 통해 P2P그룹을 생성하는 과정에 대한 개략적인 흐름도.
도 2는 본 발명의 실시예에 따른 휴대단말기의 블록도.
도 3은 본 발명의 실시예에 따라 WPS 활성화 요청에 따른 와이파이 연결 과정에 대한 흐름도.
1 is a schematic flowchart of a process of creating a P2P group through execution of a Wi-Fi P2P function.
2 is a block diagram of a mobile terminal according to an embodiment of the present invention;
3 is a flowchart illustrating a WiFi connection process according to a WPS activation request according to an embodiment of the present invention.

본 발명의 실시예에서 설명되는 와이파이 다이렉트 기능은 와이파이 다이렉트 기능을 제공하는 장치들(예를 들어, P2P 장치1 및 P2P 장치2)이 와이파이 P2P 그룹을 생성하여 제공될 수 있다.The Wi-Fi direct function described in the embodiment of the present invention can be provided by devices (for example, P2P device 1 and P2P device 2) that provide a Wi-Fi direct function to create a Wi-Fi P2P group.

WPS 연결을 통해 레거시 와이파이 연결과 와이파이 다이렉트 연결 기능을 모두 지원하는 본 발명의 실시예에 대해 살펴보기에 앞서, 와이파이 다이렉트 기능을 통해 와이파이 P2P그룹을 생성하는 과정을 먼저 살펴보면 다음과 같다. Wi-Fi P2P 그룹의 생성(또는 형성)은 크게 장치 탐색(Device Discovery), 서비스 탐색(Service Discovery) 및 그룹 생성의 세 과정을 통해 이루어지는데 순서대로 살펴보면 다음과 같다.A process of creating a Wi-Fi P2P group through a Wi-Fi direct function will be described as follows before explaining an embodiment of the present invention that supports both a legacy Wi-Fi connection and a Wi-Fi direct connection function through a WPS connection. The creation (or formation) of a Wi-Fi P2P group is performed through three steps: device discovery, service discovery, and group creation.

장치 탐색(Device Discovery) Device Discovery

장치 탐색 과정은 와이파이 다이렉트(Wi-Fi Direct)의 기능으로 와이파이 P2P(Wi-Fi P2P 그룹)을 생성하기 위하여 와이파이 장치들(예를 들어, P2P 장치 1 및 2)이 서로를 인식하여 연결을 구성하는데 필요한 절차이다.The device discovery process is a function of Wi-Fi Direct. Wi-Fi devices (for example, P2P devices 1 and 2) recognize each other to create a Wi-Fi P2P group (Wi-Fi P2P group) .

Wi-Fi Direct 기능(또는 Wi-Fi P2P 기능)을 이용하고자 하는 메뉴에 진입되거나 소정의 어플리케이션이 실행되어 장치 탐색 모드에 진입한 Wi-Fi P2P 장치(예를 들어, 도 1에 도시된 P2P 장치 1 또는 P2P 장치2)는 IEEE 802.11의 채널 스캔(Scan)과 리슨(Listen) 및 서치(Search)를 소정의 시간 주기별로 반복하여 주변의 와이파이 장치를 탐색한다.A Wi-Fi P2P device (for example, a P2P device shown in FIG. 1) entering a menu to use a Wi-Fi Direct function (or a Wi-Fi P2P function) 1 or P2P device 2) searches the neighboring Wi-Fi devices by repeating channel scan, listen, and search of IEEE 802.11 for a predetermined time period.

Wi-Fi P2P 그룹의 생성 과정에서 수행되는 장치 탐색 절차의 기본적인 동작은 IEEE 802.11 MAC protocol의 Probe Request와 Probe Response의 메시지를 서로 교환하여 수행된다. Probe Request에는 P2P IE, WSC IE 및 Supp Reg IE 등의 정보가 포함되고, Probe Response에는 P2P IE, WSC IE, RSN IE 및 Supp Reg IE가 포함된다. The basic operation of the device search procedure performed during the creation of the Wi-Fi P2P group is performed by exchanging the probe request and the probe response messages of the IEEE 802.11 MAC protocol. The probe request includes information such as the P2P IE, the WSC IE, and the Supp Reg IE, and the probe response includes the P2P IE, the WSC IE, the RSN IE, and the Supp Reg IE.

서비스 탐색(Service Discovery)Service Discovery

서비스 탐색은 전술한 탐색 과정과 후술될 그룹 생성 과정 사이에서 수행될 수 있는 것으로, 선택적으로 수행될 수 있다. 서비스 탐색 과정은 와이파이 다이렉트 기능을 제공하는 각 와이파이 장치가 요청 메시지 및 응답 메시지의 교환을 통해서 지원 가능한 service protocol 및 service 등을 확인함으로써 각 P2P 장치가 제공할 수 있는 서비스들에 대한 정보를 교환하는 기능을 제공하기 위해 수행된다.The service search can be performed between the above-described searching process and a group creating process to be described later, and can be selectively performed. The service search process is a function of exchanging information about services that each P2P device can provide by confirming service protocols and services that each Wi-Fi device providing a Wi-Fi direct function can support through exchange of a request message and a response message Lt; / RTI >

P2P 장치1이 카메라이고 P2P 장치2가 프린터일 경우를 가정하여 예를 들면, P2P 장치1의 사용자가 사진을 출력하고자 하는 경우 P2P 장치1은 P2P 장치2가 사진의 출력 기능을 지원하는지 확인할 필요가 있기 때문에 서비스 탐색을 통해 P2P 장치2의 사진 출력 기능의 가능 유무를 확인할 수 있다.Assuming that the P2P device 1 is a camera and the P2P device 2 is a printer, for example, when a user of the P2P device 1 wishes to output a picture, the P2P device 1 needs to check whether the P2P device 2 supports the picture output function It is possible to check whether or not the P2P device 2 can print the picture through the service search.

그룹 생성Create group

와이파이 다이렉트의 와이파이 P2P 그룹을 생성하기 위해서 와이파이 장치들(예를 들어, P2P 장치1 및 P2P 장치2)은 Provision Discovery 를 수행하는데, 이 Provision Discovery는 Wi-Fi Direct의 스펙(Specification)에 정의된 중요한 특징 중에 하나이다.Wi-Fi devices (for example, P2P device 1 and P2P device 2) perform Provision Discovery in order to create a Wi-Fi direct Wi-Fi P2P group, It is one of the features.

와이파이 다이렉트의 기능을 이용하기 위해 P2P 장치들은 기본적으로 WSC (Wi-Fi Simple Configuration)를 기반으로 동작(예를 들어, WPS; Wi-Fi Protected Setup을 기반으로 동작)하는데, 기존의 Wi-Fi 규격에서는 연결 장치의 WSC 지원이 선택사항(Optional)이었으나 Wi-Fi Direct에서는 필수적인(Mandatory) 속성이다.In order to utilize the functions of Wi-Fi Direct, P2P devices basically operate based on Wi-Fi Simple Configuration (WSC) (for example, based on Wi-Fi Protected Setup) , The WSC support of the connection device is optional but is mandatory in Wi-Fi Direct.

WSC의 일부 스펙 중에 하나인 WPS는 버튼을 눌러야 하는 PBC(Push Button Configuration)방식과 핀(Pin) 번호를 입력해야 하는 핀 방식이 있는데, PBC 방식과 핀 방식 모두 120초안에 설정이 완료되어야 하는 불편함이 있었다. PBC 방식을 예를 들면, 한쪽 장치에서 PBC 방식을 통해 무선 연결을 요청한 후에 120초 안에 상대 장치에서 WPS 버튼이 입력되어야 WSC Registration Protocol이 시작되게 되고, 연결에 필요한 SSID(Service set identifier) 및 크리덴셜(credential, 암호학적 정보의 총합으로서 Authentication type, encryption type, network key, ssid 등의 정보를 포함)를 교환하게 된다.WPS, which is one of the specifications of WSC, has a push button configuration method in which a button is pressed and a pin method in which a pin number is input. In the case of a PBC method and a pin method, There was. For example, in the PBC scheme, the WSC registration protocol is started when the WPS button is input in the partner device within 120 seconds after requesting the wireless connection through the PBC scheme in one of the devices, and the SSID (service set identifier) and the credential (including information such as credentials, authentication type, encryption type, network key, and ssid as a sum of cryptographic information).

이러한 종래의 WSC(또는 WPS)의 불편한 점을 개선하기 위해서 Wi-Fi Direct에서 새롭게 정의된 규격이 Provision Discovery 방식으로서, 소정의 Wi-Fi P2P 장치(예를 들어, P2P장치1)가 다른 Wi-Fi P2P 장치(예를 들어, P2P 장치2)를 탐색한 후에 종래의 WSC (PBC 방식 또는 PIN 방식)을 통해 연결이 시도될 때, 연결이 시도됨을 WSC Configuration Method 메시지를 전송하여 다른 Wi-Fi P2P 장치의 사용자에게 알려주는 방식이다. WSC Configuration Method 메시지에는 PBC, PIN from Display 및 PIN from Keypad의 종류가 있으며, PBC는 다른 Wi-Fi P2P 장치의 사용자가 버튼을 입력 받고 from Display 및 PIN from Keypad는 다른 Wi-Fi P2P 장치에 핀 번호를 표시하거나 핀 번호를 입력받는 이벤트에 의해 다른 Wi-Fi P2P 장치의 사용자에게 와이파이 다이렉트 연결이 요청됨을 알려줄 수 있다.In order to improve the inconvenience of such a conventional WSC (or WPS), a standard newly defined in Wi-Fi Direct is a Provision Discovery method, and a predetermined Wi-Fi P2P device (for example, P2P device 1) Fi P2P device (for example, P2P device 2), a WSC Configuration Method message indicating that a connection is attempted when a connection is attempted through a conventional WSC (PBC method or PIN method) is transmitted to another Wi-Fi P2P And notifies the user of the device. The WSC Configuration Method message includes PBC, PIN from Display, and PIN from Keypad, where PBC is a button for users of other Wi-Fi P2P devices, and from Display and PIN from Keypad is a pin number for other Wi-Fi P2P devices Or an event that receives a pin number, may inform the user of another Wi-Fi P2P device that a Wi-Fi direct connection is requested.

P2P 장치1 및 P2P장치2의 사용자가 와이파이 다이렉트 연결을 수용하여 Provision discovery가 완료되면, 와이파이 장치들 사이에는 Group Owner Negotiation 과정이 수행된다. 와이파이 다이렉트는 생성되는 Wi-Fi P2P 그룹의 중심 역할을 수행할 그룹 오너(Group Owner; GO)의 결정(또는 설정)이 필요하기 때문에, 와이파이 P2P 기능의 사용을 위해서는 그룹 오너(Group Owner)를 담당할 와이파이 장치를 결정하는 Group Owner Negotiation 과정이 필요하게 된다. Group Owner Negotiation 과정은 GO Negotiation Request, GO Negotiation Response 및 GO Negotiation Confirm 프레임의 교환에 의해 수행되는데, GO Negotiation Request 및 GO Negotiation Response에는 P2P IE 정보 및 WSC IE 정보가 포함된다. P2P IE의 필드(Field)에는 P2P Capability, P2P Device Info, Group Owner Intent, Configuration Timeout, Listen Channel, Extended Listen Timing, Intended P2P Interface Address, Channel List 및 Operating Channel attributes 등의 정보가 포함되며, WSC-IE의 필드(Field)에는 DEVICE PASSWORD ID, MANUFACTURER, MODEL NAME, MODEL NUMBER, SERIAL NUMBER, DEVICE NAME 등의 정보가 포함된다.When the user of the P2P device 1 and the P2P device 2 accept the Wi-Fi direct connection and the provision discovery is completed, a group owner negotiation process is performed between the Wi-Fi devices. Because WiFi Direct requires the decision (or setting) of the group owner (GO) to play a central role in the Wi-Fi P2P group being created, the WiFi Direct is responsible for the group owner A group owner negotiation process is required to determine a Wi-Fi device to be used. The group owner negotiation process is performed by exchanging a GO Negotiation Request, a GO Negotiation Response, and a GO Negotiation Confirm frame. The GO Negotiation Request and the GO Negotiation Response include the P2P IE information and the WSC IE information. The field of the P2P IE includes information such as P2P Capability, P2P Device Info, Group Owner Intent, Configuration Timeout, Listen Channel, Extended Listen Timing, Intended P2P Interface Address, Channel List and Operating Channel attributes, Field includes a DEVICE PASSWORD ID, a MANUFACTURER, a MODEL NAME, a MODEL NUMBER, a SERIAL NUMBER, and a DEVICE NAME.

P2P장치 1 및 P2P장치2는 P2P IE에 포함된 인텐트 값(Group Owner Intent)을 비교하여 큰 인텐트 값을 가지는 장치가 GO(Group Onwer)로 결정되고 작은 인텐트 값을 가지는 장치는 GC(Group Client)로 결정된다. P2P장치 1 및 P2P장치2가 GO 및 GC로 각각 결정되면 Group Owner Negotiation 과정이 완료되며, Group Owner로 설정된 장치는 WSC registrar 로써 동작하고 Group Client로 설정된 장치는 WSC Enrollee로 동작하여 서로 크리덴셜(Credential) 를 교환하는 Provisioning 이 완료되면 와이파이 P2P 그룹을 형성하기 위한 그룹 설정 과정이 완료된다.The P2P device 1 and the P2P device 2 compare the Intent value included in the P2P IE and determine that the device having a large intent value is GO (Group Onwer), and the device having a small intent value is the GC ( Group Client). When P2P device 1 and P2P device 2 are determined as GO and GC, the group owner negotiation process is completed. The device set as the group owner operates as the WSC registrar and the device set as the group client operates as the WSC Enrollee, ) Is completed, the group setting process for forming the Wi-Fi P2P group is completed.

이후, 그룹 형성 과정이 완료되면 Group Owner의 장치는 operating channel로 이동하여 Group Owner로써의 역할을 시작하고, Group Client의 장치는 Provisioning 을 통해 확인한 크리덴셜(credential)을 통해 Group Owner에 접속하여, 최종적으로 두 P2P 장치가 Wi-Fi P2P 그룹으로 연결된다.Then, when the group forming process is completed, the device of the group owner moves to the operating channel to start the role as the group owner, and the device of the group client accesses the group owner through the credentials confirmed through provisioning, Two P2P devices are connected to the Wi-Fi P2P group.

도 2는 본 발명의 실시예에 따른 휴대단말기의 블록도이며, 본 발명의 실시예에서는 휴대단말기를 와이파이 장치로 가정한다.FIG. 2 is a block diagram of a portable terminal according to an embodiment of the present invention. In the embodiment of the present invention, the portable terminal is assumed to be a Wi-Fi device.

본 발명의 실시예에서 휴대단말기는 휴대가 용이하게 이동 가능한 전자기기로서, 화상전화기, 휴대폰, 스마트 폰(Smart Phone), IMT-2000(International Mobile Telecommunication 2000) 단말기, WCDMA 단말기, UMTS(Universal Mobile Telecommunication Service) 단말기, PDA(Personal Digital Assistant), PMP(Portable Multimedia Player), DMB(Digital Multimedia Broadcasting) 단말기, E-Book 단말기, 휴대용 컴퓨터(Notebook, Tablet 등) 또는 디지털 카메라(Digital Camera) 등이 될 수 있다. 도 2를 참조하여 본 발명의 실시예에 따른 휴대단말기에 대해 살펴보면 다음과 같다.In the embodiment of the present invention, the portable terminal is an electronic device that can be easily carried by the portable device. The portable terminal may be a video phone, a mobile phone, a smart phone, an International Mobile Telecommunication 2000 (IMT-2000) terminal, a WCDMA terminal, a Universal Mobile Telecommunication Service terminal, a PDA (Personal Digital Assistant), a PMP (Portable Multimedia Player), a DMB (Digital Multimedia Broadcasting) terminal, an E-Book terminal, a portable computer (notebook, have. The portable terminal according to the embodiment of the present invention will be described with reference to FIG.

무선 송수신부(223)는 RF부와 모뎀(MODEM)을 포함한다. RF부는 송신되는 신호의 주파수를 상승변환 및 증폭하는 RF송신기와, 수신되는 신호를 저잡음 증폭하고 주파수를 하강 변환하는 RF수신기 등을 포함한다. 모뎀(MODEM)은 송신될 신호를 부호화 및 변조하는 송신기 및 RF부에서 수신되는 신호를 복조 및 복호화하는 수신기 등을 포함한다. The wireless transceiver 223 includes an RF unit and a modem. The RF unit includes an RF transmitter for up-converting and amplifying the frequency of the transmitted signal, and an RF receiver for low-noise amplifying the received signal and down-converting the frequency. A modem (MODEM) includes a transmitter for encoding and modulating a signal to be transmitted, and a receiver for demodulating and decoding a signal received by the RF unit.

오디오 처리부(225)는 코덱(Codec)을 구성할 수 있으며, 상기 코덱은 데이터 코덱과 오디오 코덱을 포함한다. 데이터 코덱은 패킷데이터 등을 처리하고, 오디오 코덱은 음성과 멀티미디어 파일 등의 오디오 신호를 처리한다. 오디오 처리부(225)는 모뎀에서 수신되는 디지털 오디오신호를 상기 오디오 코덱을 통해 아날로그신호를 변환하여 재생하거나 또는 마이크로부터 발생되는 아날로그 오디오 신호를 상기 오디오 코덱을 통해 디지털 오디오 신호로 변환하여 모뎀으로 전송하는 기능을 수행한다. 상기 코덱은 별도로 구비되거나 제어부(210)에 포함될 수 있다. The audio processing unit 225 may constitute a codec, and the codec includes a data codec and an audio codec. The data codec processes packet data and the audio codec processes audio signals such as voice and multimedia files. The audio processor 225 converts an analog audio signal received from the modem into an analog audio signal through the audio codec or converts the analog audio signal generated from the microphone into a digital audio signal through the audio codec and transmits the digital audio signal to the modem Function. The codec may be provided separately or may be included in the controller 210.

키입력부(227)는 숫자 및 문자 정보의 입력에 필요한 키들 및 각종 기능들의 설정에 필요한 기능 키들 또는 터치 패드 등을 포함할 수 있다. 표시부(250)가 정전식 또는 감압식 등의 터치표시화면방식으로 구현될 경우, 키입력부(227)는 미리 설정된 최소한의 키만을 포함할 수 있으며 표시부(250)는 키입력부(227)의 키입력 기능을 일부 대체할 수 있다. The key input unit 227 may include keys necessary for inputting numeric and character information, and function keys or a touch pad necessary for setting various functions. The key input unit 227 may include only a predetermined minimum key and the display unit 250 may include a key input function of the key input unit 227, Can be partially replaced.

메모리(230)는 프로그램 메모리 및 데이터 메모리들로 구성될 수 있으며, 프로그램 메모리에는 휴대단말기의 일반적인 동작을 제어하기 위한 프로그램이 저장된다. 메모리(230)는 CF(Compact Flash), SD(Secure Digital), Micro-SD(Micro Secure Digital), Mini-SD(Mini Secure Digital), xD(Extreme Digital) 및 Memory Stick 등의 외장형메모리를 더 포함할 수도 있다. 또한, 메모리(230)는 HDD(Hard Disk Drive) 및 SSD(Solid State Disk) 등과 같은 디스크를 포함할 수도 있다.The memory 230 may include a program memory and data memories, and a program for controlling general operations of the portable terminal is stored in the program memory. The memory 230 further includes an external memory such as Compact Flash (CF), Secure Digital (SD), Micro Secure Digital (SD), Mini Secure Digital (SD-SD) You may. In addition, the memory 230 may include a disk such as a hard disk drive (HDD) and a solid state disk (SSD).

Wi-Fi 모듈(240)은 IEEE 802.11 의 규격에 따른 근거리 무선 통신 기능을 제공한다. 본 발명의 실시예에 따른 Wi-Fi 모듈(40)은 와이파이 다이렉트의 규격을 만족하며 이를 통해 와이파이 다이렉트 기능을 통해 형성되는 Wi-Fi P2P 그룹으로 휴대단말기끼리 데이터를 교환할 수 있는 기능 등을 제공할 수 있다. 또한, 본 발명의 실시예에 따른 Wi-Fi 모듈(40)은 와이파이 다이렉트의 규격을 만족하기 때문에 기존의 레거시 와이파이 기능(예를 들어, AP에 접속하여 무선 통신을 수행하는 기능) 또한 제공할 수 있다.The Wi-Fi module 240 provides a short-range wireless communication function according to the IEEE 802.11 standard. The Wi-Fi module 40 according to the embodiment of the present invention satisfies the specification of Wi-Fi direct and provides a function of exchanging data between portable terminals in a Wi-Fi P2P group formed through a Wi-Fi direct function can do. In addition, since the Wi-Fi module 40 according to the embodiment of the present invention satisfies the specification of Wi-Fi direct, it is possible to provide the existing legacy Wi-Fi function (for example, have.

표시부(250)는 LCD(Liquid Crystal Display) 또는 OLED(Organic Light Emitting Diodes로서 PMOLED 또는 AMOLED)등으로 이루어질 수 있으며, 휴대단말기에서 발생하는 각종 표시 정보를 출력한다. 표시부(250)는 정전식(또는 정전용량방식) 또는 감압식 방식 등의 터치스크린(Touch Screen)을 포함하여 키입력부(227)와 함께 휴대단말기를 제어하는 입력부로 동작할 수 있다.The display unit 250 may include a liquid crystal display (LCD) or an organic light emitting diode (PMOLED or AMOLED) as an organic light emitting diode (OLED), and outputs various display information generated from the portable terminal. The display unit 250 may include a touch screen such as an electrostatic type (or electrostatic capacity type) or a pressure sensitive type, and may operate as an input unit for controlling the portable terminal together with the key input unit 227.

제어부(210)는 본 발명의 실시 예에 따른 휴대단말기의 전반적인 동작을 제어하며, 키입력부(227) 또는 표시부(250) 등을 통해 입력되는 사용자 입력에 따라 휴대단말기의 동작을 전환 및 제어할 수 있다. 본 발명의 실시예에 따른 제어부(210)는 WPS의 활성화가 요청된 것으로 확인되면 와이파이 다이렉트의 그룹 오너 모드로 진입하는 과정과, 상기 그룹 오너 모드로 진입하면, WPS 레지스트라 모드(Registrar mode)로 동작할 수 있는 WPS 세션 모드로 진입하는 과정과, 주변에 WPS Registrar mode의 WPS 세션이 활성화된 AP(Access Point) 또는 그룹 오너 모드가 활성화된 장치가 존재하는지 탐색하는 과정과, 상기 탐색 결과 WPS 레지스트라 모드가 활성화된 AP가 탐색되면 상기 진입한 WPS 레지스트라 모드 및 그룹 오너 모드를 비활성화하고, WPS 엔롤리 모드(Enrollee mode)로 동작하기 위한 WPS 세션을 활성화하여 상기 탐색된 AP에 접속하는 과정과 관련된 일련의 대응되는 동작을 수행할 수 있다.The control unit 210 controls the overall operation of the mobile terminal according to the embodiment of the present invention and can switch and control the operation of the mobile terminal according to a user input inputted through the key input unit 227 or the display unit 250 have. The control unit 210 according to the embodiment of the present invention enters a group owner mode of Wi-Fi direct when it is determined that activation of the WPS is requested, and when the user enters the group owner mode, the control unit 210 operates in a WPS registrar mode The method comprising the steps of: entering a WPS session mode in which a WPS session mode is activated and a device in which an AP (Access Point) or a group owner mode in which a WPS session in the WPS registrar mode is activated is active; The WPS registrar mode and the group owner mode are deactivated and the WPS session for operating in the WPS enrollee mode is activated to access the discovered AP, The corresponding operation can be performed.

도 3은 본 발명의 실시예에 따라 WPS 활성화 요청에 따른 와이파이 연결 과정에 대한 흐름도이다.3 is a flowchart illustrating a WiFi connection process according to a WPS activation request according to an exemplary embodiment of the present invention.

S301-S303 단계에서, 제어부(210)는 WPS의 활성화가 요청된 것으로 확인되면 와이파이 다이렉트의 Group Owner 모드로 진입하고, WPS 레지스트라 모드로 동작할 수 있는 WPS 세션 모드로 진입하도록 제어한다.In step S301-S303, if it is determined that activation of the WPS is requested, the control unit 210 enters the WPS direct mode Group Owner mode and controls the WPS session mode to enter the WPS session mode that can operate in the WPS registrar mode.

본 발명의 실시예에서 와이파이 연결은 AP 접속을 통해 무선 통신을 수행하는 레거시 와이파이가 있고, 다른 와이파이 장치와 와이파이 P2P 그룹을 형성할 수 있는 와이파이 다이렉트가 있다.In the embodiment of the present invention, the Wi-Fi connection includes a legacy Wi-Fi that performs wireless communication through an AP connection, and a Wi-Fi direct that can form another Wi-Fi device and a Wi-Fi P2P group.

사용자가 키입력부(227) 또는 표시부(250)를 이용한 키입력을 통해 WPS PBC button 또는 WPS PIN 입력을 통해 WPS의 활성화(Enabling)를 요청한 것으로 확인되면, 제어부(210)는 와이파이 다이렉트의 그룹 오너(Group Owner; GO) 모드를 활성화하여 그룹 오너(GO) 권한을 획득하도록 제어한다. 그룹 오너 권한을 획득한 후에, 제어부(210)는 와이파이 연결시 휴대단말기가 WPS Registrar mode(레지스트라 모드)로 동작할 수 있도록 WPS 세션(Session)을 활성화하도록 제어한다. When the user confirms that the WPS PBC button or the WPS PIN is requested through the key input unit 227 or the display unit 250 and the WPS is enabled, the control unit 210 displays the group owner of Wi-Fi direct The group owner (GO) mode is activated to obtain the group owner (GO) authority. After acquiring the group owner right, the control unit 210 controls the WPS session to activate the WPS session so that the wireless terminal can operate in the WPS registrar mode (registrar mode) at the time of Wi-Fi connection.

예를 들어, WPS 레지스트라 모드로 동작할 수 있는 WPS 세션을 활성 모드로 진입하도록 제어함으로써, 제어부(210)는 IEEE 802.11 표준에 의해 규정되는 각종 통신 파라미터(네트워크 식별자인 SSID, 주파수 채널, 인증 방식, 암호방식, 암호 키 등)을 다른 장치에 제공하기 위한 프로세스를 진행하도록 제어한다.For example, by controlling the WPS session that can operate in the WPS registrar mode to enter the active mode, the control unit 210 controls various communication parameters (SSID, frequency channel, authentication method, Cryptosystem, cryptographic key, etc.) to another apparatus.

S304-S306 단계에서, 제어부(210)는 WPS Registrar mode의 WPS 세션이 활성화된 AP 또는 Group Owner 모드가 활성화된 장치(예를 들어, 휴대단말기)의 존재를 탐색하여, WPS Registrar mode가 활성화된 AP가 탐색되면 WPS Registrar mode로 동작하는 WPS 세션을 종료하고 GO 모드를 비활성화한 후에, WPS Enrollee mode(엔롤리 모드)로 동작하기 위한 WPS 세션을 활성화하도록 제어한다.In step S304-S306, the control unit 210 searches for the existence of an AP in which the WPS session in the WPS registrar mode is activated or a device in which the group owner mode is activated (for example, a portable terminal) The WPS session in the WPS Registrar mode is terminated and the GO mode is disabled, and then the WPS session is activated to operate in the WPS Enrolllee mode.

S304단계에서, 제어부(210)는 IEEE 802.11의 스펙에서 정의하는 채널 스캔 방법(IEEE 802.11 scan mode)을 통해 와이파이 통신이 가능한 장치를 탐색하여 IEEE 802.11 표준에 의해 규정되는 각종 통신 파라미터(네트워크 식별자인 SSID, 주파수 채널, 인증 방식, 암호방식, 암호 키 등) 등을 확인함으로써, WPS Registrar mode의 WPS Session 이 활성화된 AP(예를 들어, AP로 동작하는 와이파이 장치)를 탐색할 수 있다. In step S304, the controller 210 searches for a device capable of performing Wi-Fi communication through a channel scanning method (IEEE 802.11 scan mode) defined in the IEEE 802.11 specification, and searches for various communication parameters (SSID , A frequency channel, an authentication method, an encryption method, an encryption key, and the like), thereby searching for an AP (e.g., a Wi-Fi device operating as an AP) in which a WPS session in the WPS registrar mode is activated.

또한, S304 단계에서 제어부(210)는 와이파이 다이렉트의 도 1에서 설명한 Probe Request와 Probe Response의 메시지 교환을 통해 GO(Group Owner) 권한을 가진(Group Owner 모드가 활성화된) 장치를 확인할 수 있는데, 이는 후술되는 내용으로 탐색된 장치가 그룹 오너 권한을 가지고 있을 경우 SSID에 특징적인 prefix(접두어)를 가지기 때문이다.Also, in step S304, the controller 210 can confirm the device having the GO (Group Owner) right (the group owner mode is activated) through the message exchange of the probe request and the probe response described in FIG. 1 of Wi-Fi direct. This is because the SSID has a characteristic prefix (prefix) when the discovered device has the group owner right.

S304 단계의 확인 결과, WPS Registrar mode의 WPS Session 이 활성화된 AP가 탐색된 것으로 확인되면, 제어부(210)는 S302-S303 단계에서 활성화하였던 WPS 세션과 Group Owner 모드가 비활성화되도록 제어한다. 이후, S305-S306 단계에서 제어부(210)는 와이파이 장치(예를 들어, 휴대단말기)가 WPS enrollee mode로 동작하도록 하는 WPS 세션을 활성화화여 탐색된 AP(예를 들어, WPS Registrar mode의 WPS Session 이 활성화된 AP)에 접속하도록 제어한다. 즉, S305-S306 단계에서 제어부(210)는 AP에 접속하여 무선 통신 기능을 제공하는 종래의 레거시 와이파이의 기능을 제공하도록 제어한다.If it is determined in step S304 that the AP having the WPS session activated in the WPS registrar mode is found, the controller 210 controls the WPS session and the group owner mode activated in steps S302-S303 to be deactivated. Then, in steps S305-S306, the control unit 210 activates a WPS session in which a Wi-Fi device (e.g., a mobile terminal) operates in a WPS enrollee mode and searches for a WPS session in the WPS registrar mode To the active AP). That is, in steps S305-S306, the control unit 210 accesses the AP and controls the legacy WiFi function to provide a wireless communication function.

S304-S306 단계를 통해 설명한 바를 통해, 본 발명의 실시예는 WPS를 이용한 연결방법을 통해서 레거시 와이파이와 와이파이 다이렉트 모두를 연결할 수 있는 발명을 제공하면서도, WPS 연결방법을 통해 AP 접속 기능만을 제공하는 기존의 레거시 와이파이 기능과의 호환성을 제공할 수 있다.Through the steps S304-S306, the embodiment of the present invention provides an invention capable of connecting both legacy Wi-Fi and Wi-Fi direct through a connection method using WPS, Of legacy WiFi functionality.

한편, S304 단계의 확인 결과 GO 권한을 가지는 장치(예를 들어, Group Onwer 모드가 활성화된 장치)가 탐색된 것으로 확인될 경우, S307 단계에서 제어부(210)는 와이파이 다이렉트의 그룹 오너를 결정하고 결정 결과에 대응되게 와이파이 P2P 그룹을 형성하도록 제어한다.On the other hand, if it is determined in step S304 that the apparatus having the GO authority (for example, the apparatus in which the Group Onwer mode is activated) is found to have been searched, the controller 210 determines the group owner of Wi-Fi direct in step S307, So as to form a Wi-Fi P2P group corresponding to the result.

본 발명의 실시예는 기존의 레거시 와이파이 이용시에만 적용되었던 WPS 연결 방법(예를 들어, PBC 방식)을 와이파이 다이렉트의 이용시에도 활용하기 위한 것임을 설명하였고, 이에 따라 WPS 연결이 요청되면 S302 단계에서 와이파이 다이렉트의 그룹 오너 모드가 자동으로 활성화됨을 설명하였다. 본 발명의 실시예는 S304 단계에서 AP가 탐색이 될 경우에는 WPS 연결을 통해 레거시 와이파이 기능을 제공하고, S304 단계에서 그룹 오너(GO)가 탐색되면 와이파이 다이렉트의 기능을 제공한다.In the embodiment of the present invention, the WPS connection method (for example, the PBC method), which has been applied only when using the existing legacy WiFi, is utilized for utilizing the WIFI direct. Thus, when the WPS connection is requested, The group owner mode is automatically activated. The embodiment of the present invention provides a legacy Wi-Fi function through a WPS connection when the AP is searched in step S304, and provides a Wi-Fi direct function when the group owner (GO) is searched in step S304.

따라서, S304 단계의 확인 결과에서 GO 권한을 가지는 장치가 탐색되었을 경우에는, 본 발명의 실시예에 따른 휴대단말기와 탐색된 장치(GO 권한을 가지는) 중에서 어떠한 장치가 GO(그룹 오너)로 동작할지를 결정하는 그룹 오너 선택 과정이 수반되어야 한다.Accordingly, when a device having GO authority is searched in the result of step S304, it is determined whether a device (GO owner) to operate as a GO (group owner) among the portable terminal and the discovered device (having GO authority) according to the embodiment of the present invention The process of selecting a group owner must be accompanied.

한편, 도 1에서 설명한 그룹 오너 설정 과정은 와이파이 장치들의 인텐트 값을 비교하여 그룹 오너를 결정하는 예를 설명하였는데, 본 발명의 실시예에 따른 휴대단말기는 S302 단계에서 이미 그룹 오너 권한을 가지게 되었고, S304 단계에서 탐색된 그룹 오너 장치는 이름 그래도 그룹 오너 권한을 가지고 있다. 따라서, S307 단계에서 본 발명은 그룹 오너인 두 장치들 사이에서 그룹 오너를 재설정할 필요가 있다. Meanwhile, the group owner setting process described with reference to FIG. 1 has described an example in which a group owner is determined by comparing intent values of Wi-Fi devices. However, the mobile terminal according to the embodiment of the present invention already has a group owner right in step S302 , The group owner device searched in step S304 has the group owner right even if it is a name. Therefore, in step S307, the present invention needs to reset the group owner between the two apparatuses as the group owner.

한편, Wi-Fi Direct 규격은 Group Owner 동작 시 기존 레거시 와이파이 이용시의 AP와 구별되도록, 해당 와이파이 장치의 SSID 이름이 Direct-xy의 prefix를 가지도록 규정하고 있다.Meanwhile, the Wi-Fi Direct specification stipulates that the SSID name of a corresponding Wi-Fi device should have a Direct-xy prefix so that the Wi-Fi Direct device can distinguish it from an existing legacy Wi-Fi AP when the group owner operates.

따라서, S307 단계에서 제어부(210)는 SSID 이름 앞에 붙는 prefix인 Direct-xy의 비교를 통해 Group Owner 결정에 활용하는데, prefix Direct-xy에서 xy 두 문자가 변동되는 값을 가지기 때문에 제어부(210)는 xy값을 비교를 통해 그룹 오너를 결정한다.Accordingly, in step S307, the control unit 210 uses the prefix Direct-xy, which is a prefix prefixed to the SSID name, to determine Group Ownership. Since the prefix Direct- The group owner is determined by comparing xy values.

예를 들어, 본 발명의 실시예에 따른 휴대단말기가 S302 단계에서 그룹 오너 권한을 획득하여 direct-10이라는 SSID 이름을 가지고, S304에서 그룹 오너 권한을 가지는 것으로 탐색된 장치가 direct-09라는 SSID 이름을 가지는 것으로 가정할 경우, 제어부(210)는 10이라는 값과 09라는 값을 비교를 통해 그룹 오너를 설정할 수 있다. 예를 들어, 높은 xy값을 가지는 장치가 그룹 오너 권한을 가지도록 설정되었을 경우, 10의 값을 가지는 본 발명의 실시예에 따른 휴대단말기가 그룹 오너 권한을 획득하며, 09의 값을 가지는 탐색된 장치는 그룹 클라이언트의 권한을 획득하게 된다. 이 때, 큰 값의 prefix를 가지는 장치가 그룹 오너 권한을 가지는 것으로 설명하였으나, 작은 값의 prefix를 가지는 장치가 그룹 오너 권한을 가지는 것 또한 실시예의 변형을 통해 적용 가능함을 당업자에게 자명할 것이다. For example, if the mobile terminal according to the embodiment of the present invention obtains the group owner right in step S302 and has the SSID name of direct-10, the device found to have the group owner right in step S304 is the SSID name of direct-09 The controller 210 can set the group owner by comparing the value of 10 and the value of 09. [ For example, when a device having a high xy value is set to have the group owner right, the mobile terminal according to the embodiment of the present invention having a value of 10 acquires the group owner right, The device obtains the authority of the group client. In this case, although a device having a prefix of a large value is described as having a group owner right, it will be apparent to those skilled in the art that a device having a prefix of a small value has a group owner right.

prefix의 비교를 통해 그룹 오너가 결정되면, 이에 대응되게 와이파이 다이렉트의 와이파이 P2P 그룹이 형성된다. 예를 들어, 본 발명의 실시예에 따른 휴대단말기가 그룹 오너 권한을 획득하게 되면, 제어부(210)는 본 발명의 실시예에 따른 휴대단말기가 Registrar로 동작하도록 WPS 세션을 유지하도록 제어하며, S304에서 그룹 오너 권한을 가지는 것으로 탐색된 장치는 그룹 클라이언트로 권한이 재설정되어 Enrollee로 동작하게 된다.When the group owner is determined through comparison of the prefixes, a Wi-Fi direct Wi-Fi P2P group is formed correspondingly. For example, when the portable terminal according to the embodiment of the present invention acquires the group owner right, the controller 210 controls the portable terminal according to the embodiment of the present invention to maintain the WPS session so as to operate as a registrar, The device discovered as having the group owner right is reset to the group client and operates as Enrollee.

즉, 본 발명의 실시예에 따른 휴대단말기는 그룹 오너의 권한을 가지고 S304에서 그룹 오너 권한을 가진 것으로 탐색된 장치는 그룹 클라이언트의 권한을 가지게 되어 서로 크리덴셜(Credential)을 교환하여, 서로 간의 와이파이 P2P 그룹을 형성하게 된다.That is, the portable terminal according to the embodiment of the present invention has the authority of the group owner, and the devices found to have the group owner authority in step S304 have authority of the group client, exchange the credentials with each other, P2P group.

지금까지 본 발명에 대해서 상세히 설명하였으나, 그 과정에서 언급한 실시예는 예시적인 것일 뿐, 한정적인 것이 아님을 분명히 하며, 본 발명은 이하의 특허청구범위에 의해 제공되는 본 발명의 기술적 사상이나 분야를 벗어나지 않는 범위 내에서, 본 발명으로부터 균등하게 대체될 수 있는 정도의 구성요소 변경은 본 발명의 범위에 속한다 할 것이다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of example, It is to be understood that within the scope of the appended claims the invention may be practiced otherwise than as specifically described herein.

Claims (10)

휴대단말기에서 WPS(Wi-Fi Protected Setup)을 이용한 와이파이 연결 방법에 있어서,
WPS의 활성화가 요청된 것으로 확인되면 와이파이 다이렉트의 그룹 오너 모드로 진입하는 과정과,
상기 그룹 오너 모드로 진입하면, WPS 레지스트라 모드(Registrar mode)로 동작할 수 있는 WPS 세션 모드로 진입하는 과정과,
주변에 WPS Registrar mode의 WPS 세션이 활성화된 AP(Access Point) 또는 그룹 오너 모드가 활성화된 장치가 존재하는지 탐색하는 과정과,
상기 탐색 결과 WPS 레지스트라 모드가 활성화된 AP가 탐색되면 상기 진입한 WPS 레지스트라 모드 및 그룹 오너 모드를 비활성화하고, WPS 엔롤리 모드(Enrollee mode)로 동작하기 위한 WPS 세션을 활성화하여 상기 탐색된 AP에 접속하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
A Wi-Fi connection method using Wi-Fi Protected Setup (WPS) in a wireless terminal,
If it is determined that the activation of the WPS is requested, a process of entering the group owner mode of Wi-Fi direct,
Entering a WPS session mode capable of operating in a WPS registrar mode upon entering the group owner mode,
Searching for an AP (Access Point) in which a WPS session in the WPS Registrar mode is activated or a device in which a group owner mode is activated exists,
If the WPS registrar mode of the search result is found, the WPS registrar mode and the group owner mode are deactivated, the WPS session to operate in the WPS enrollee mode is activated, The method comprising the steps of:
제1항에 있어서,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 와이파이 다이렉트의 그룹 오너를 휴대단말기 및 상기 탐색된 장치 중에서 결정하고, 결정 결과에 대응되게 와이파이 P2P 그룹을 형성하는 과정을 더 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method according to claim 1,
Determining a group owner of the Wi-Fi direct from among the portable terminal and the searched device when the device having the group owner mode activated is found as a result of the search, and forming a Wi-Fi P2P group corresponding to the determination result Wifi connection method.
제2항에 있어서, 상기 와이파이 P2P 그룹을 형성하는 과정은,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 상기 그룹 오너 모드 진입 과정에서 생성된 상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix를 비교하는 과정과,
상기 prefix의 비교 결과에 따라 상기 와이파이 P2P 그룹을 형성하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method of claim 2, wherein the forming of the WiFi P2P group comprises:
Comparing the prefix of the SSID name of the portable terminal and the prefix of the SSID name of the searched device when the device having the group owner mode activated is searched for as a result of the search,
And forming the Wi-Fi P2P group according to a comparison result of the prefix.
제3항에 있어서, 상기 와이파이 P2P 그룹을 형성하는 과정은,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 큰 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹을 형성하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method as claimed in claim 3, wherein the forming of the WiFi P2P group comprises:
And a step in which a device corresponding to a prefix having a large value among the prefix of the SSID name of the portable terminal and the prefix of the SSID name of the searched device obtains a group owner right to form the WiFi P2P group Wifi connection method.
제3항에 있어서, 상기 와이파이 P2P 그룹을 형성하는 과정은,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 작은 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹을 형성하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method as claimed in claim 3, wherein the forming of the WiFi P2P group comprises:
And a step in which the device corresponding to the prefix having a smaller value among the prefix of the SSID name of the portable terminal and the prefix of the SSID name of the searched device acquires the group owner right to form the WiFi P2P group Wifi connection method.
휴대단말기에서 WPS(Wi-Fi Protected Setup)을 이용한 와이파이 연결 장치에 있어서,
IEEE 802.11 의 규격에 따른 근거리 무선 통신 기능을 제공하는 와이파이 모듈과,
사용자의 키 입력을 입력 받는 키입력부 또는 표시부와,
상기 키입력부 또는 표시부를 통해 WPS의 활성화가 요청된 것으로 확인되면 와이파이 다이렉트의 그룹 오너 모드로 진입한 후에 WPS 레지스트라 모드(Registrar mode)로 동작할 수 있는 WPS 세션 모드로 진입하고, 주변에 WPS Registrar mode의 WPS 세션이 활성화된 AP(Access Point) 또는 그룹 오너 모드가 활성화된 장치가 존재하는지 탐색하고, 상기 탐색 결과 WPS 레지스트라 모드가 활성화된 AP가 탐색되면 상기 진입한 WPS 레지스트라 모드 및 그룹 오너 모드를 비활성화하고, WPS 엔롤리 모드(Enrollee mode)로 동작하기 위한 WPS 세션을 활성화하여 상기 탐색된 AP에 접속하도록 제어하는 제어부를 포함하는 것을 특징으로 하는 와이파이 연결 장치.
A Wi-Fi connection apparatus using a Wi-Fi Protected Setup (WPS) in a portable terminal,
A Wi-Fi module for providing a short-range wireless communication function conforming to the IEEE 802.11 standard,
A key input unit or a display unit receiving a key input of a user,
If it is determined that activation of the WPS is requested through the key input unit or the display unit, the WPS enters a WPS session mode that can operate in a WPS registrar mode after entering a group owner mode of Wi-Fi direct, The WPS registrar mode and the group owner mode are disabled if an access point (AP) in which the WPS session of the WPS session is activated or a device in which the group owner mode is activated exists, And activating a WPS session for operating in a WPS Enrollee mode to control access to the searched AP.
제6항에 있어서, 상기 제어부는,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 와이파이 다이렉트의 그룹 오너를 휴대단말기 및 상기 탐색된 장치 중에서 결정하고, 결정 결과에 대응되게 와이파이 P2P 그룹을 형성하도록 제어하는 것을 특징으로 하는 와이파이 연결 장치.
7. The apparatus of claim 6,
Wherein the control unit determines the group owner of the Wi-Fi direct from among the portable terminal and the searched apparatus when the device having the group owner mode activated is found as a result of the search, and controls to form a Wi-Fi P2P group corresponding to the determination result Device.
제7항에 있어서, 상기 제어부는,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 상기 그룹 오너 모드 진입 과정에서 생성된 상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix를 비교하고,
상기 prefix의 비교 결과에 따라 상기 와이파이 P2P 그룹을 형성하도록 제어하는 것을 특징으로 하는 와이파이 연결 장치.
8. The apparatus of claim 7,
If the device having the group owner mode activated is searched, the mobile terminal compares the prefix of the SSID name of the portable terminal and the prefix of the SSID name of the searched device,
And controls to form the Wi-Fi P2P group according to the comparison result of the prefix.
제8항에 있어서,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 큰 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹이 형성되는 것을 특징으로 하는 와이파이 연결 장치.
9. The method of claim 8,
Wherein the device corresponding to the prefix having a large value among the prefix of the SSID name of the portable terminal and the prefix of the SSID name of the searched device obtains the group owner right to form the WiFi P2P group. .
제8항에 있어서,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 작은 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹이 형성되는 것을 특징으로 하는 와이파이 연결 장치.
9. The method of claim 8,
Wherein the device corresponding to the prefix having a smaller value among the prefix of the SSID name of the portable terminal and the prefix of the SSID name of the searched device obtains the group owner right to form the WiFi P2P group. .
KR1020190058792A 2019-05-20 2019-05-20 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal KR102045944B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190058792A KR102045944B1 (en) 2019-05-20 2019-05-20 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190058792A KR102045944B1 (en) 2019-05-20 2019-05-20 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020180131344A Division KR101982199B1 (en) 2018-10-30 2018-10-30 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020190144168A Division KR102181159B1 (en) 2019-11-12 2019-11-12 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Publications (2)

Publication Number Publication Date
KR20190057254A true KR20190057254A (en) 2019-05-28
KR102045944B1 KR102045944B1 (en) 2019-11-18

Family

ID=66656764

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190058792A KR102045944B1 (en) 2019-05-20 2019-05-20 Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal

Country Status (1)

Country Link
KR (1) KR102045944B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177822A1 (en) * 2006-12-25 2008-07-24 Sony Corporation Content playback system, playback device, playback control method and program
US20110082905A1 (en) * 2009-10-02 2011-04-07 Qualcomm Incorporated Wlan peer-to-peer group owner negotiation
US20110222518A1 (en) * 2010-03-09 2011-09-15 Seiko Epson Corporation Wireless communication system, wireless communication device, projector, and wireless communication method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177822A1 (en) * 2006-12-25 2008-07-24 Sony Corporation Content playback system, playback device, playback control method and program
US20110082905A1 (en) * 2009-10-02 2011-04-07 Qualcomm Incorporated Wlan peer-to-peer group owner negotiation
US20110222518A1 (en) * 2010-03-09 2011-09-15 Seiko Epson Corporation Wireless communication system, wireless communication device, projector, and wireless communication method

Also Published As

Publication number Publication date
KR102045944B1 (en) 2019-11-18

Similar Documents

Publication Publication Date Title
KR101915314B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
US11582592B2 (en) Communication device
US9998880B2 (en) Method and apparatus for forming Wi-Fi P2P group using Wi-Fi direct
EP2387205B1 (en) Method and System for Providing Wi-Fi Service by Wi-Fi Device
US10425980B2 (en) Method and apparatus for connecting to access point in portable terminal
CN113366439B (en) Method and device for connecting Bluetooth device
KR101964077B1 (en) Apparatus and method for connecting bluetooth device in portable terminal
KR20110125695A (en) Method and system for providing wi-fi service of wi-fi device
CN113301669B (en) Method for establishing hotspot connection and terminal equipment
KR102361852B1 (en) Communication apparatus, control method, and medium
US9860930B2 (en) Method to set up a wireless communication connection and electronic device utilizing the same
JP2020057866A (en) Application program, mobile terminal, and communication device
KR101982199B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
KR102045944B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
KR102181159B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
KR101921142B1 (en) Apparatus and method for connecting with wi-fi network
JP7303913B2 (en) Communication device, control method, and program

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E701 Decision to grant or registration of patent right
A107 Divisional application of patent
GRNT Written decision to grant