8
Triggering WPS
Iacob JUC edited this page 2024-02-01 11:31:22 +00:00

[[TOC]]

WPS Triggering is used to connect EasyMesh devices to create wireless backhaul. Backhaul related settings for prplMesh are explained in Persistent Configuration section.

This page describes how to trigger WPS with prplMesh development environment.

Triggering WPS

There are different ways to trigger WPS.

  1. Using External CLI Tools (hostapd_cli and wpa_cli)
  2. Using UBUS Commands
  3. WPS Button

External CLI Tools

If prplMesh is deployed with prplOS system, there are some packages to help managing network.

hostapd_cli is included in normal images, but for wpa_cli debug profile should be added to prplOS before building.

For hosting Backhaul BSS device:

hostapd_cli -i <interface> wps_pbc

For connecting Backhaul STA device:

wpa_cli -i <interface> wps_pbc multi_ap=1

These commands trigger WPS. Commands should be run in both devices with close timings (the WPS "walk time" is 2 minutes).

To get more DEBUG information, below lines can be also set beforehand:

hostapd_cli -i <interface> log_level debug wpa_cli -i <interface> log_level debug

UBUS Commands

prplOS also contains UBUS entities to help managing network.

For hosting Backhaul BSS device:

ubus call hostapd.wlan1-1 wps_start

For connecting Backhaul STA device:

ubus call wpa_supplicant.wlan1 wps_start '{"multi_ap":true}'

These commands trigger WPS. Commands should be run in both devices with close timings (the WPS "walk time" is 2 minutes).

WPS Button

WPS button is not configured in prplOS default. It is need to be set with correct GPIO setting according to your platform.

WPS with PWHM

WPS section of Onboarding with pWHM