Skip to content
Philipp M. Scholl edited this page Jan 12, 2016 · 1 revision

Edison/Yocto Cheat Sheet

Switching between AP and Client wifi mode

Starting an AP: systemctl stop wpa_supplicant || systemctl start hostapd

Starting as client: systemctl stop hostapd || systemctl start wpa_supplicant

For both the last configuration will be reused.

Configuring Client Mode

use the wpa_cli interactive shell or use configure_edison --wifi.

Alternatively you can edit the configuration files directly, which are /etc/hostapd/hostapd.conf for AP mode, and /etc/wpa_supplicant/wpa_supplicant.conf for client mode.

Getting the status of a client Wifi connection

can be done with:

wpa_cli status
Selected interface 'wlan0'
bssid=c4:04:15:01:ff:13
ssid=phlin
id=1
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.1.127
p2p_device_address=fe:c2:de:34:94:85
address=fc:c2:de:34:94:85

enabling ipv6, if not done automatically

ip addr add fe80:: dev wlan0

enable IP debug output on Contiki

change DEBUG_NONE to DEBUG_FULL in core/net/ip/tcpip.c:52, and in core/net/ipv6/uip6.c:88