본문 바로가기

Development/WiFi Direct(P2P)

WiFi Direct 구현

WiFi Direct 구현

 

1) 설치 환경(H/W)

 - CPU : Intel Core i5 2.5GHz

 - RAM : 4GB

 - OS : uBuntu 12.04 LTS(64Bit)

 - WiFi Chip : Qualcomm Atheros AR9485

 

 - WiFi Driver : ath9k

 

2) 포팅 항목(S/W)

 - OpenSSL 1.0.1

 - libnl-dev

 - libnl2

 - libnl3

 - Openvswitch-brcompat(brctl)

 - wpa_supplicant

 

 - wpa_cli

 

3) P2P 동작 환경 Config  File

 - p2p.conf



ctrl_interface=/var/run/wpa_supplicant
ap_scan=1


device_name=WiFi_Direct_test
device_type=1-0050F204-1


# If you need to modify the group owner intent, 0-15, the higher
# number indicates preference to become the GO. You can also set
# this on p2p_connect commands.
p2p_go_intent=15


# optional, can be useful for monitoring, forces
# wpa_supplicant to use only channel 1 rather than
# 1, 6 and 11:
p2p_listen_reg_class=81
p2p_listen_channel=1
p2p_oper_reg_class=81
p2p_oper_channel=1


 

4) WiFi Direct 동작



wpa_supplicant -Dnl80211 -c ./p2p.conf -i wlan0 -dt

 

 

5) WiFi Direct 연결 확인

- wpa_cli  실행

 



p2p_Find


....


p2p_stop_find


p2p_connect 00:00:00:00:00 pbc

 

6) WiFi Direct 연결 확인 결과

 - Galaxy Note2 연결중으로 연결 실패.

 - Optimus Vu2 연결 완료.