KR102045944B1 - 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
KR102045944B1
KR102045944B1 KR1020190058792A KR20190058792A KR102045944B1 KR 102045944 B1 KR102045944 B1 KR 102045944B1 KR 1020190058792 A KR1020190058792 A KR 1020190058792A KR 20190058792 A KR20190058792 A KR 20190058792A KR 102045944 B1 KR102045944 B1 KR 102045944B1
Authority
KR
South Korea
Prior art keywords
wps
mode
group owner
group
prefix
Prior art date
Application number
KR1020190058792A
Other languages
Korean (ko)
Other versions
KR20190057254A (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

Abstract

본 발명은 휴대단말기에서 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 relates to a method of connecting a Wi-Fi using a Wi-Fi Protected Setup (WPS) in a mobile terminal, when the activation of the WPS is requested, entering a group owner mode of Wi-Fi Direct, and entering the group owner mode. Enters a WPS session mode that can operate in a WPS registrar mode and discovers whether there is an AP (Access Point) or group owner mode activated device in which a WPS session in a WPS registrar mode is activated And searching for an AP having a WPS registrar mode activated as a result of the discovery, deactivating the entered WPS registrar mode and group owner mode, and activating a WPS session for operating in a WPS Enrollee mode. And accessing the AP.

Figure 112019051346755-pat00003
Figure 112019051346755-pat00003

Description

휴대단말기에서 WPS(Wi-Fi Protecte d Setup)을 이용한 와이파이 연결 방법 및 장치{METHOD AND APPARATUS FOR WI-FI CONNECTING USING WI-FI PROTECTED SETUP IN A PORTABLE TERMINAL}METHOOD AND APPARATUS FOR WI-FI CONNECTING USING WI-FI PROTECTED SETUP IN A PORTABLE TERMINAL} 와이파이 PS (W 中 -Fi プ rotecte DStup)

본 발명은 무선 통신에 관한 것으로, 보다 상세하게는 WPS(Wi-Fi Protected Setup)를 이용하여 와이파이(Wi-Fi) 통신을 제공하는 장치들간에 손쉽게 연결할 수 있는 발명에 관한 것이다.The present invention relates to wireless communication, and more particularly, to an invention that can be easily connected between devices providing Wi-Fi communication using Wi-Fi Protected Setup (WPS).

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

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

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

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

WPS 연결 방식은 와이파이 연결을 시도하는 장치가 PBC (Push Button Configuration) 방식을 이용한 버튼의 입력 또는 PIN 방식을 이용한 PIN 정보의 입력을 통해서, 손쉽게 와이파이를 이용한 무선 통신 기능을 제공받을 수 있도록 하는 방식이다. The WPS connection method allows a device that attempts to connect to Wi-Fi to be easily provided with a wireless communication function using Wi-Fi 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 the WPS session is activated, the device attempting to connect to Wi-Fi detects the existence of the AP through frequency and channel scanning, and then starts the WPS Registration Protocol with the AP that has been activated. Through this, the AP acquires the Credentials (SSID, Security Info, Network Key) and automatically accesses the AP using the obtained Credentials.

한편, 전술한 이러한 WPS 연결 방식은 편리하게 와이파이를 이용한 무선 통신 기능을 제공받을 수 있는 장점이 있기 때문에, 레거시 와이파이 뿐만 아니라 와이파이 다이렉트 기능을 이용할 경우에도 WPS 연결 방식이 지원된다면, 와이파이 다이렉트 사용의 편리함을 증대할 수 있을 것이다.On the other hand, the WPS connection method described above has the advantage of being able to conveniently provide a wireless communication function using the Wi-Fi, if the WPS connection method is supported even when using the Wi-Fi Direct function as well as legacy Wi-Fi, convenience of using Wi-Fi Direct. Will be able to increase.

그런데, 와이파이 다이렉트는 IEEE 802.11g 이상(예를 들어, IEEE 802.11g 또는 IEEE 802.11n)의 스펙을 준수하는 장치만이 이용할 수 있기 때문에, 레거시 와이파이 기능만을 제공하는 장치(예를 들어, IEEE 802.11b의 스펙만을 준수하는 장치)는 와이파이 다이렉트 기능을 사용할 수 없게 된다. However, since Wi-Fi Direct can only be used by devices that conform to the specifications of IEEE 802.11g or higher (eg, IEEE 802.11g or IEEE 802.11n), devices that provide only legacy Wi-Fi functions (eg, IEEE 802.11b). Devices that comply only with the specifications of the device will not be able to use the Wi-Fi Direct function.

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

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

따라서, 레거시 와이파이 연결에만 적용되었던 WPS 연결방식을 와이파이 다이렉트 연결에도 적용하면서, 하나의 WPS 연결 요청 메뉴(예를 들어, PBC 연결방식의 WPS 버튼)만으로 연결 대상 장치의 종류에 따라 레거시 와이파이 또는 와이파이 다이렉트가 선별적으로 자동 연결되도록 하는 발명을 제안하고자 한다. 즉, 와이파이 장치의 와이파이 지원 규격 및 와이파이 장치의 속성과 상관없이 WPS 연결을 활성화하는 것만으로 와이파이 연결과 와이파이 다이렉트 연결을 모두 지원할 수 있는 WPS 연결방식을 제안하고자 한다.Therefore, while applying the WPS connection method applied to legacy Wi-Fi connection only to Wi-Fi Direct connection, only one WPS connection request menu (for example, WBC button of PBC connection method) is used. The present invention proposes to selectively allow automatic linkage. That is, the present invention proposes a WPS connection method capable of supporting both a Wi-Fi connection and a Wi-Fi direct connection by activating the WPS connection regardless 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 relates to a method of connecting a Wi-Fi using a Wi-Fi Protected Setup (WPS) in a mobile terminal, when the activation of the WPS is requested, entering a group owner mode of Wi-Fi Direct, and entering the group owner mode. Enters a WPS session mode that can operate in a WPS registrar mode and discovers whether there is an AP (Access Point) or group owner mode activated device in which a WPS session in a WPS registrar mode is activated And searching for an AP having a WPS registrar mode activated as a result of the discovery, deactivating the entered WPS registrar mode and group owner mode, and activating a WPS session for operating in a WPS Enrollee mode. And accessing the AP.

또한, 본 발명은 휴대단말기에서 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에 접속하도록 제어하는 제어부를 포함한다.In addition, the present invention is a Wi-Fi connection device using a Wi-Fi Protected Setup (WPS) in a portable terminal, a Wi-Fi module for providing a short-range wireless communication function according to the IEEE 802.11 standard, and a key input unit for receiving a user's key input Alternatively, if it is determined that the activation of WPS is requested through the display unit and the key input unit or the display unit, the user enters the group owner mode of the Wi-Fi Direct and enters the WPS session mode capable of operating in the WPS registrar mode. If there is an access point (AP) in which a WPS session in WPS Registrar mode is activated or a device in which a group owner mode is activated is present, and if the AP in which the WPS registrar mode is activated is found, the entered WPS registrar mode and group are detected. By disabling owner mode and activating a WPS session to operate in WPS Enrollee mode. And a controller for controlling access to the discovered AP.

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

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

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

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

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

WPS 연결을 통해 레거시 와이파이 연결과 와이파이 다이렉트 연결 기능을 모두 지원하는 본 발명의 실시예에 대해 살펴보기에 앞서, 와이파이 다이렉트 기능을 통해 와이파이 P2P그룹을 생성하는 과정을 먼저 살펴보면 다음과 같다. Wi-Fi P2P 그룹의 생성(또는 형성)은 크게 장치 탐색(Device Discovery), 서비스 탐색(Service Discovery) 및 그룹 생성의 세 과정을 통해 이루어지는데 순서대로 살펴보면 다음과 같다.Before looking at the embodiment of the present invention that supports both the legacy Wi-Fi connection and the Wi-Fi Direct connection function through the WPS connection, the process of creating a Wi-Fi P2P group through the Wi-Fi Direct function is as follows. The creation (or formation) of a Wi-Fi P2P group is largely performed through three processes of 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 feature of Wi-Fi Direct that allows Wi-Fi devices (e.g., P2P devices 1 and 2) to recognize each other and create a connection to create a Wi-Fi P2P group. This is necessary procedure.

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, the P2P device shown in FIG. 1) that enters a menu to use the Wi-Fi Direct function (or Wi-Fi P2P function) or enters a device discovery mode by executing a predetermined application. 1 or 2, the P2P device 2 searches for nearby Wi-Fi devices by repeating a channel scan, listen, and search of IEEE 802.11 at predetermined time periods.

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 discovery procedure performed in the creation of the Wi-Fi P2P group is performed by exchanging Probe Request and Probe Response messages of the IEEE 802.11 MAC protocol. Probe Request includes information such as P2P IE, WSC IE and Supp Reg IE, and Probe Response includes P2P IE, WSC IE, RSN IE and Supp Reg IE.

서비스 탐색(Service Discovery)Service Discovery

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

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

그룹 생성Create group

와이파이 다이렉트의 와이파이 P2P 그룹을 생성하기 위해서 와이파이 장치들(예를 들어, P2P 장치1 및 P2P 장치2)은 Provision Discovery 를 수행하는데, 이 Provision Discovery는 Wi-Fi Direct의 스펙(Specification)에 정의된 중요한 특징 중에 하나이다.To create Wi-Fi Direct's Wi-Fi P2P group, Wi-Fi devices (for example, P2P Device1 and P2P Device2) perform Provision Discovery, which is an important definition defined in the Wi-Fi Direct Specification. 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 use the function of Wi-Fi Direct, P2P devices basically operate based on WSC (Wi-Fi Simple Configuration) (for example, WPS; based on Wi-Fi Protected Setup). In WSC support for optional devices was optional, but it is a mandatory attribute 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, one of the specifications of WSC, has a push button configuration (PBC) method to push a button and a pin method to input a pin number. Both PBC method and pin method need to be completed within 120 seconds. There was a ham. For example, in the PBC method, after requesting a wireless connection through a PBC method from one device, the WSC button must be entered within 120 seconds before the WSC Registration Protocol is started, and the SSID (Service Set Identifier) and credentials required for the connection are established. (including information such as authentication type, encryption type, network key, ssid, etc.) as a sum of credentials and 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 the conventional WSC (or WPS), the newly defined standard in Wi-Fi Direct is the Provision Discovery method, and the Wi-Fi P2P device (for example, P2P device 1) is different from the Wi-Fi Direct. When a connection is attempted through a conventional WSC (PBC method or PIN method) after searching for a Fi P2P device (for example, P2P device2), another Wi-Fi P2P message is sent by sending a WSC Configuration Method message indicating that the connection is attempted. This is how the user of the device is informed. WSC Configuration Method messages include PBC, PIN from Display, and PIN from Keypad, where the user of the other Wi-Fi P2P device receives the button, and the Display and PIN from Keypad is the pin number for the other Wi-Fi P2P device. By displaying an event or inputting a pin number, a user of another Wi-Fi P2P device may be notified 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 accepts the Wi-Fi Direct connection and the provision discovery is completed, the Group Owner Negotiation process is performed between the Wi-Fi devices. Since Wi-Fi Direct requires the determination (or setting) of a group owner (GO) to play a central role in the Wi-Fi P2P group being created, the Wi-Fi Direct takes charge of the group owner in order to use the Wi-Fi P2P function. A Group Owner Negotiation process is needed to determine which Wi-Fi device to use. The Group Owner Negotiation process is performed by exchanging GO Negotiation Request, GO Negotiation Response and GO Negotiation Confirm frames. The GO Negotiation Request and GO Negotiation Response include P2P IE information and WSC IE information. Fields of P2P IE include 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 the information such as DEVICE PASSWORD ID, MANUFACTURER, MODEL NAME, MODEL NUMBER, SERIAL NUMBER, 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 그룹을 형성하기 위한 그룹 설정 과정이 완료된다.P2P device 1 and P2P device 2 compare the group owner intent included in the P2P IE, and the device having the large intent value is determined as GO (Group Onwer) and the device having the small intent value is GC ( Group Client). If P2P device 1 and P2P device 2 are determined as GO and GC, respectively, Group Owner Negotiation process is completed.The device set as Group Owner operates as WSC registrar and the device set as Group Client operates as WSC Enrollee. ) Once the provisioning is completed, the group setup process to form a 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 formation 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 connects to the group owner through the credentials checked through provisioning. As a result, two P2P devices are connected to the Wi-Fi P2P group.

도 2는 본 발명의 실시예에 따른 휴대단말기의 블록도이며, 본 발명의 실시예에서는 휴대단말기를 와이파이 장치로 가정한다.2 is a block diagram of a mobile terminal according to an embodiment of the present invention. In the embodiment of the present invention, it is assumed that the mobile terminal is 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 mobile terminal is a portable electronic device that can be easily carried, such as a video phone, a mobile phone, a smart phone, an IMT-2000 (International Mobile Telecommunication 2000) terminal, a WCDMA terminal, and a UMTS (Universal Mobile Telecommunication). Service terminal, PDA (Personal Digital Assistant), PMP (Portable Multimedia Player), DMB (Digital Multimedia Broadcasting) terminal, E-Book terminal, portable computer (Notebook, Tablet, etc.) or digital camera (Digital Camera). have. Looking at the portable terminal according to an embodiment of the present invention 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 upconverting and amplifying a frequency of a transmitted signal, and an RF receiver for low noise amplifying and downconverting a received signal. The modem MODEM includes a transmitter for encoding and modulating a signal to be transmitted, a receiver for demodulating and decoding a signal received at an RF unit, and the like.

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

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

메모리(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 a data memory. The program memory stores a program for controlling a general operation of the mobile terminal. The memory 230 further includes external memories such as Compact Flash (CF), Secure Digital (SD), Micro Secure Digital (Micro-SD), Mini Secure Digital (Mini-SD), Extreme Digital (xD), and Memory Stick. 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 for exchanging data between mobile terminals with a Wi-Fi P2P group formed through the 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 may also provide an existing legacy Wi-Fi function (for example, a function of wirelessly connecting to an AP). have.

표시부(250)는 LCD(Liquid Crystal Display) 또는 OLED(Organic Light Emitting Diodes로서 PMOLED 또는 AMOLED)등으로 이루어질 수 있으며, 휴대단말기에서 발생하는 각종 표시 정보를 출력한다. 표시부(250)는 정전식(또는 정전용량방식) 또는 감압식 방식 등의 터치스크린(Touch Screen)을 포함하여 키입력부(227)와 함께 휴대단말기를 제어하는 입력부로 동작할 수 있다.The display unit 250 may be formed of a liquid crystal display (LCD) or an organic light emitting diode (OLED), such as PMOLED or AMOLED, and outputs various display information generated by the mobile terminal. The display unit 250 may include a touch screen such as a capacitive type (or capacitive type) or a pressure sensitive type to operate as an input unit for controlling the mobile 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 controller 210 controls the overall operation of the mobile terminal according to an embodiment of the present invention, and can switch and control the operation of the mobile terminal according to a user input input through the key input unit 227 or the display unit 250. have. If it is determined that the activation of the WPS is requested, the control unit 210 according to an embodiment of the present invention enters the group owner mode of Wi-Fi Direct, and enters the group owner mode, and operates in the WPS registrar mode. Entering a WPS session mode, searching for an access point (AP) or group owner mode activated device having a WPS session in a WPS registrar mode, and discovering a WPS registrar mode When the activated AP is discovered, deactivating the entered WPS registrar mode and group owner mode and activating a WPS session for operating in a WPS Enrollee mode to access the discovered AP. The corresponding operation may be performed.

도 3은 본 발명의 실시예에 따라 WPS 활성화 요청에 따른 와이파이 연결 과정에 대한 흐름도이다.3 is a flowchart illustrating a Wi-Fi connection process according to a WPS activation request according to an 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 controller 210 enters the group owner mode of Wi-Fi Direct and controls to enter the WPS session mode capable of operating in the WPS registrar mode.

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

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

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

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 controller 210 searches for the presence of an AP with a WPS session activated in the WPS Registrar mode or a device (eg, a mobile terminal) with the Group Owner mode activated, thereby enabling the WPS Registrar mode activated. If is found, terminate the WPS session operating in WPS Registrar mode, deactivate the GO mode, and control to activate the WPS session to operate in WPS Enrollee 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 control unit 210 searches for a device capable of Wi-Fi communication through a channel scan method (IEEE 802.11 scan mode) defined in the specifications of IEEE 802.11, SSID that is various communication parameters defined by the IEEE 802.11 standard By checking the frequency channel, the authentication method, the encryption method, the encryption key, etc., the AP (eg, a Wi-Fi device operating as an AP) in which the WPS Session in the WPS Registrar mode is activated can be found.

또한, S304 단계에서 제어부(210)는 와이파이 다이렉트의 도 1에서 설명한 Probe Request와 Probe Response의 메시지 교환을 통해 GO(Group Owner) 권한을 가진(Group Owner 모드가 활성화된) 장치를 확인할 수 있는데, 이는 후술되는 내용으로 탐색된 장치가 그룹 오너 권한을 가지고 있을 경우 SSID에 특징적인 prefix(접두어)를 가지기 때문이다.In addition, in step S304, the control unit 210 may check the device having the GO (Group Owner) permission through the exchange of messages between Probe Request and Probe Response described in FIG. This is because the device discovered by the following description has a characteristic prefix in the SSID when the device has the group owner authority.

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에 접속하여 무선 통신 기능을 제공하는 종래의 레거시 와이파이의 기능을 제공하도록 제어한다.As a result of checking in step S304, when it is confirmed that the AP in which the WPS Session in the WPS Registrar mode is activated is detected, the controller 210 controls the WPS session and the Group Owner mode that were activated in steps S302 to S303 to be deactivated. Subsequently, in step S305-S306, the controller 210 activates a WPS session for allowing a Wi-Fi device (eg, a mobile terminal) to operate in a WPS enrollee mode, thereby discovering an AP (eg, WPS Session in WPS Registrar mode). To access the activated AP). That is, in steps S305-S306, the controller 210 controls to provide a function of a conventional legacy Wi-Fi that provides a wireless communication function by accessing the AP.

S304-S306 단계를 통해 설명한 바를 통해, 본 발명의 실시예는 WPS를 이용한 연결방법을 통해서 레거시 와이파이와 와이파이 다이렉트 모두를 연결할 수 있는 발명을 제공하면서도, WPS 연결방법을 통해 AP 접속 기능만을 제공하는 기존의 레거시 와이파이 기능과의 호환성을 제공할 수 있다.Through the steps described through the step S304-S306, the embodiment of the present invention provides an invention that can connect both legacy Wi-Fi and Wi-Fi Direct through a connection method using WPS, while providing an AP access function only through the WPS connection method. It can provide compatibility with legacy Wi-Fi capabilities.

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

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

따라서, S304 단계의 확인 결과에서 GO 권한을 가지는 장치가 탐색되었을 경우에는, 본 발명의 실시예에 따른 휴대단말기와 탐색된 장치(GO 권한을 가지는) 중에서 어떠한 장치가 GO(그룹 오너)로 동작할지를 결정하는 그룹 오너 선택 과정이 수반되어야 한다.Therefore, when the device having the GO authority is found in the check result of step S304, which device is the GO (group owner) among the mobile terminal and the discovered device (having the GO authority) according to an embodiment of the present invention. Decision-making should be followed by a group owner selection process.

한편, 도 1에서 설명한 그룹 오너 설정 과정은 와이파이 장치들의 인텐트 값을 비교하여 그룹 오너를 결정하는 예를 설명하였는데, 본 발명의 실시예에 따른 휴대단말기는 S302 단계에서 이미 그룹 오너 권한을 가지게 되었고, S304 단계에서 탐색된 그룹 오너 장치는 이름 그래도 그룹 오너 권한을 가지고 있다. 따라서, S307 단계에서 본 발명은 그룹 오너인 두 장치들 사이에서 그룹 오너를 재설정할 필요가 있다. On the other hand, the group owner setting process described in Figure 1 described an example of determining the group owner by comparing the intent value of the Wi-Fi devices, the mobile terminal according to an embodiment of the present invention already has a group owner authority in step S302 The group owner device found in step S304 has the group owner authority, though. Therefore, in step S307, the present invention needs to reset the group owner between two devices that are group owners.

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

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

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

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

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

지금까지 본 발명에 대해서 상세히 설명하였으나, 그 과정에서 언급한 실시예는 예시적인 것일 뿐, 한정적인 것이 아님을 분명히 하며, 본 발명은 이하의 특허청구범위에 의해 제공되는 본 발명의 기술적 사상이나 분야를 벗어나지 않는 범위 내에서, 본 발명으로부터 균등하게 대체될 수 있는 정도의 구성요소 변경은 본 발명의 범위에 속한다 할 것이다.Although the present invention has been described in detail so far, it should be apparent that the embodiments mentioned in the process are only illustrative, and not restrictive, and the present invention is provided by the following claims. Within the scope not departing from the scope of the present invention, component changes to the extent that they can be equivalently substituted from the present invention will fall within the scope of the present invention.

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에 접속하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
In the Wi-Fi connection method using the Wi-Fi Protected Setup (WPS) in the mobile terminal,
If it is confirmed that WPS activation is requested, entering the group owner mode of Wi-Fi Direct,
Entering the group owner mode, entering a WPS session mode capable of operating in a WPS registrar mode;
Discovering whether there is an AP (Access Point) with WPS session in WPS Registrar mode or a device with group owner mode enabled;
If the WPS registrar mode is activated as a result of the discovery, 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. Wi-Fi connection method comprising the step of.
제1항에 있어서,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 와이파이 다이렉트의 그룹 오너를 휴대단말기 및 상기 탐색된 장치 중에서 결정하고, 결정 결과에 대응되게 와이파이 P2P 그룹을 형성하는 과정을 더 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method of claim 1,
The method may further include determining a group owner of Wi-Fi Direct among the mobile terminal and the searched device and forming a Wi-Fi P2P group corresponding to the determination result when the device having the group owner mode is activated is found. WiFi connection method.
제2항에 있어서, 상기 와이파이 P2P 그룹을 형성하는 과정은,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 상기 그룹 오너 모드 진입 과정에서 생성된 상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix를 비교하는 과정과,
상기 prefix의 비교 결과에 따라 상기 와이파이 P2P 그룹을 형성하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method of claim 2, wherein the forming of the Wi-Fi P2P group comprises:
Comparing the prefix of the SSID name of the mobile terminal generated during the group owner mode entry with the prefix of the SSID name of the discovered device when the device having the group owner mode is activated is found;
And forming the Wi-Fi P2P group according to the comparison result of the prefix.
제3항에 있어서, 상기 와이파이 P2P 그룹을 형성하는 과정은,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 큰 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹을 형성하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method of claim 3, wherein the forming of the Wi-Fi P2P group comprises:
And forming a Wi-Fi P2P group by acquiring a group owner by a device corresponding to a prefix having a large value from among the prefix of the SSID name of the mobile terminal and the prefix of the SSID name of the discovered device. WiFi connection method.
제3항에 있어서, 상기 와이파이 P2P 그룹을 형성하는 과정은,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 작은 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹을 형성하는 과정을 포함하는 것을 특징으로 하는 와이파이 연결 방법.
The method of claim 3, wherein the forming of the Wi-Fi P2P group comprises:
And a device corresponding to a prefix having a small value among the prefix of the SSID name of the mobile terminal and the prefix of the SSID name of the searched device, to obtain a group owner authority to form the Wi-Fi 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에 접속하도록 제어하는 제어부를 포함하는 것을 특징으로 하는 와이파이 연결 장치.
In the Wi-Fi connected device using the Wi-Fi Protected Setup (WPS) in the mobile terminal,
Wi-Fi module that provides a short-range wireless communication function according to the IEEE 802.11 standard,
A key input unit or display unit for receiving a user's key input;
If it is confirmed that activation of the WPS is requested through the key input unit or the display unit, after entering the group owner mode of Wi-Fi Direct, the device enters the WPS session mode capable of operating in the WPS registrar mode and WPS Registrar mode in the vicinity. Detect whether there is an access point (AP) or group owner mode activated device in which a WPS session is activated, and if the search resulted in an AP in which the WPS registrar mode is activated, deactivate the entered WPS registrar mode and group owner mode. And a controller for activating a WPS session for operating in a WPS Enrollee mode to control access to the discovered AP.
제6항에 있어서, 상기 제어부는,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 와이파이 다이렉트의 그룹 오너를 휴대단말기 및 상기 탐색된 장치 중에서 결정하고, 결정 결과에 대응되게 와이파이 P2P 그룹을 형성하도록 제어하는 것을 특징으로 하는 와이파이 연결 장치.
The method of claim 6, wherein the control unit,
As a result of the search, when the device having the group owner mode is activated, the group owner of Wi-Fi Direct is determined from the mobile terminal and the searched device, and the Wi-Fi connection is controlled to form a Wi-Fi P2P group corresponding to the determination result. Device.
제7항에 있어서, 상기 제어부는,
상기 탐색 결과, 그룹 오너 모드가 활성화된 장치가 탐색되면 상기 그룹 오너 모드 진입 과정에서 생성된 상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix를 비교하고,
상기 prefix의 비교 결과에 따라 상기 와이파이 P2P 그룹을 형성하도록 제어하는 것을 특징으로 하는 와이파이 연결 장치.
The method of claim 7, wherein the control unit,
As a result of the discovery, when the device having the group owner mode is activated, the prefix of the SSID name of the mobile terminal generated during the group owner mode entry process is compared with the prefix of the SSID name of the discovered device.
And controlling to form the Wi-Fi P2P group according to the comparison result of the prefix.
제8항에 있어서,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 큰 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹이 형성되는 것을 특징으로 하는 와이파이 연결 장치.
The method of claim 8,
The Wi-Fi P2P group is formed by 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 discovered device, by obtaining a group owner authority. .
제8항에 있어서,
상기 휴대단말기의 SSID 이름의 prefix와 상기 탐색된 장치의 SSID 이름의 prefix 중에서, 작은 값을 가지는 prefix에 대응되는 장치가 그룹 오너 권한을 획득하여 상기 와이파이 P2P 그룹이 형성되는 것을 특징으로 하는 와이파이 연결 장치.
The method of claim 8,
The Wi-Fi P2P group is formed by the device corresponding to the prefix having a small value among the prefix of the SSID name of the mobile terminal and the prefix of the SSID name of the discovered device, by obtaining a group owner authority. .
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 KR20190057254A (en) 2019-05-28
KR102045944B1 true 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
KR20190057254A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
US11825533B2 (en) Method and apparatus for Wi-Fi connection using Wi-Fi protected setup in portable terminal
US11140535B2 (en) Function execution device and communication terminal
US9998880B2 (en) Method and apparatus for forming Wi-Fi P2P group using Wi-Fi direct
US20190394744A1 (en) Method and apparatus for registering wireless device in wireless communication system
US10425980B2 (en) Method and apparatus for connecting to access point in portable terminal
KR20200007754A (en) Method edge computing service and electronic device thereof
US20160242033A1 (en) Communication service using method and electronic device supporting the same
KR20150087914A (en) A method for discovering devices based on a location information and apparatus thereof
KR102361852B1 (en) Communication apparatus, control method, and medium
US9860930B2 (en) Method to set up a wireless communication connection and electronic device utilizing the same
WO2015098162A1 (en) Onboard device and control method for onboard device
KR102036686B1 (en) Apparatus and method for selecting channel in wireless communication system
KR101982199B1 (en) Method and apparatus for wi-fi connecting using wi-fi protected setup in a portable terminal
KR20140116350A (en) Method for connecting network using Wi-Fi Direct in image forming apparatus, image forming apparatus supporting Wi-Fi Direct and image forming system
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
KR102390887B1 (en) Method and apparatus for registering wireless device in wireless communication system

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