Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

08 Aero Network and System Administration

Paul Guermonprez edited this page Apr 17, 2017 · 30 revisions

In order to have internet access on Aero board it's possible to switch it to client mode so it connects to your Access Point instead of being an Access Point itself.

To change the wifi configuration, connect locally to Aero (with keybaord and screen, or direct USB cable).

  • To switch to Wifi client mode use the command:

    /etc/init.d/autostart-supplicant.sh start
  • Open the command line Wifi tool:

    wpa_cli –iwlan0
  • Scan Wifi networks, show results, add a network config, select it, set the password, enable and select it, save:

    scan
    scan_res
    add_net
    # will return a number, ex: 1
    set_net 1 ssid "my_ssid"
    # note : if your network has spaces, use the mac adress instead
    set_net 1 bssid "xx:xx:xx:xx:xx:xx"
    set_net 1 psk "my_password"
    enable_net 1
    select_net 1
    save_config
    # it will write the config in /etc/wpa_supplicant.conf
    quit
    ifconfig wlan0

    The result of ifconfig will give your IP address. Or you can ask your router-dhcp server what IP was assignated to Intel Aero.

  • With this method, your PC and Aero both have internet access and you can ssh to Aero. The SSID and password are saved in a file between reboots. But the board will reboot with the AP mode by default. To set the client mode as default after future reboots, type:

    update-rc.d -f autostart-hostapd.sh remove
    update-rc.d -f autostart-supplicant.sh defaults
    reboot
  • If you want to switch back to AP mode by default at boot type:

    update-rc.d -f autostart-supplicant.sh remove
    update-rc.d -f autostart-hostapd.sh defaults
    reboot