CONFIGURING WI-FI NETWORK WITH COMMAND LINE ON DRAGONBOARD410C USING LINARO DEVELOPER
by LuizTeixeira in Circuits > Wireless
89 Views, 0 Favorites, 0 Comments
CONFIGURING WI-FI NETWORK WITH COMMAND LINE ON DRAGONBOARD410C USING LINARO DEVELOPER
This tutorial shows how to configure a Wi-Fi connection using "nmcli" commands, this is useful when there's no GUI, nmtui it's not avaliable or to write a bash script to set a connection.
Commands Nmcli
Step 1) Create a connection:
- nmcli con add type wifi ifname YOUR_NIC (Usually wlan0) con-name YOUR_ALIAS autoconnect yes ssid YOUR_SSID
Step 2) Set encryption:
-
nmcli con modify dragonboard_ap wifi-sec.key-mgmt YOUR_ENCRYPTION (Usually wpa-psk)
Step 3) Set password:
- nmcli con modify dragonboard_ap wifi-sec.psk YOUR_8_DIGITS_MIN_PASSWORD
Step 4) Set connection up:
- nmcli con up YOUR_ALIAS