Start_Guide_P2P_User_Interface_Linux.pdf

(349 KB) Pobierz
Realtek Start Guide P2P User
Interface
Date: 2012/04/06
Version: 0.6
Start Guide P2P User Interface
Files:
All the necessary files are available in the
“WiFi_Direct_User_Interface” folder of Realtek software package.
Definitions:
(1) P2P Device:
WFA P2P certified device that is capable of acting as both a P2P
Group Owner and a P2P Client.
(2) P2P Group Owner (GO):
An “AP(Access Point)-like” entity that may provide
and use connectivity between P2P Clients
(3) P2P Client:
A P2P Device that is connected to a P2P Group Owner.
1
Install P2P user interface
1.1 Using P2P user interface needs the following files:
(1) wpa_supplicant_hostapd-0.8_rtw_20111118.zip
(2) p2p_hostapd.conf
(3) wpa_0_8.conf
And in the folder wpa_supplicant_hostapd, it can’t be run without these
files.
1.2
After checking these files, we could insert command install.sh to install
P2P_UI, it also takes p2p_hostapd.conf , wpa_0_8.conf in this folder and
install wpa_supplicant, hostapd in this folder.
We marked DHCP client/server functionalities as default because it’s quite
different depending on platforms. We implemented it for Fedora in this P2P
user interface. You could also validate p2p connection by setting static IP.
After installation complete, we would use P2P_UI
1.3
1.4
2
P2P_UI
2.1 Launch the P2P_UI with interface (eg. wlan0)
#./P2P_UI wlan0
(The window size of user interface is recommended to set 100x40)
3 Start using the P2P_UI to connect to other P2P device. (active connection)
We could use P2P functionalities sequentially from top to down as the P2P_UI
lists.
3.1 Enable P2P functionality (insert cmd:e).
[0] Disable P2P device, disable P2P functionalities
[1] Enable P2P device
[2] Enable P2P device and set as P2P client as default
[3] Enable P2P device and set as P2P GO as default
When using user interface in first time, it’s recommended that enable in p2p
device mode.
If we select [1], user interface will scan p2p devices automatically.
3.2
Set P2P device intent
3.2.1 It’s the degree that we want our P2P device becoming a P2P client or
P2P GO (insert cmd:i).
3.2.2 degree from [0-15]
3.2.3 ps: intent = 15 means this P2P device must be the P2P GO.
3.3 Scan P2P devices (insert cmd: a).
After scaning, the P2P_UI will show the scan results of p2p device
name, BSSID, if is GO (with *) and config methods that are supported.
Abbreviation for config methods:
LAB: Label VDIS: Virtual Display PDIS: Physical Display
DIS: Display ENFC: External NFC Token
INFC: Integrated NFC Token NFC: NFC Interface
VPBC: Virtual Push Button PPBC: Physical Push Button
PBC: Push Button
3.4
Set peer device address (insert cmd: m).
3.4.1 From scan list, we could choose one P2P device to start the P2P
connection.
3.4.2 Input the number of device that we want to do P2P handshake.
3.5 Issue provision discovery frame (insert cmd: p).
3.5.1 The purpose for issuing the provision discovery frame is to set/get the
WPS PIN CODE or WPS PBC to/from peer P2P device.
3.5.2 In version 0.5, the following procedures of P2P handshake (including
set WPS method, group owner negotiation, start wpa_supplicant or
hostapd and DHCP client/server) is combined in this step.
3.5.3 Select the way to get the WPS configuration method we want to use.
[0]: We input the PIN code that displays on peer device screen.
[1]: Our screen display PIN code and input this PIN code on the peer
device
*If we use this WPS configure method, we should input PIN code
at first (see 6.4) or use default PIN code: 12345670.
[2]: Both P2P devices will use the WPS PBC
[3]: We input the PIN code that printed on peer device WPS label (like
sticker).
3.5.4 After 3.5.3, we issue provision discovery and also declaring which
WPS method we want to use( this information is inside provision
discovery frame)
3.5.5 We check p2p status, if status ==
P2P_STATE_RX_PROVISION_DIS_RSP then we set the
corresponding config method to driver.
3.5.6 Then we start negotiation.
3.5.7 In group owner negotiation procedure, we will query status regularly. If
we detected that status == P2P_STATE_GONEGO_OK, then we will
show the P2P handshake successful message.
Zgłoś jeśli naruszono regulamin