`
I’m trying to connect my BB Blue to my local wifi. I can ssh into the board through USB. I can also connect to the onboard AP and ssh through that. I am failing to connect the board as a client to my WiFi router.
Very similar to what you did, but not calling ‘enable wifi’, ‘tether wifi disable’, and ‘agent on’.
Also, I directly wrote the settings (including the passphrase) to /var/lib/conman/xyz-psk.config, as explained in the gist.
Finally I had to tell my router to accept the new device
However, I am struggling to modify the Accesspoint default password, or even just disabling the AccessPoint. Very nice that
AP and Wifi Client connections are possible at the same time though.
The access point is controlled thru: /etc/default/bb-wl18xx
make sure you have latest version of: bb-wl18xx-firmware
# TETHER_ENABLED: Whether or not to run the /usr/bin/bb-wl18xx-tether
daemon; set to no to disable.
TETHER_ENABLED=yes
# USE_CONNMAN_TETHER: Whether or not to just use connman tether
inteface; set to no to disable.
USE_CONNMAN_TETHER=no
# USE_WL18XX_IP_PREFIX: default IP block of SoftAP0 interface
USE_WL18XX_IP_PREFIX="192.168.8"
# USE_WL18XX_MAC_ADDRESS: use custom mac address, for when work wifi
starts sending deauthentication packet spam.
#USE_WL18XX_MAC_ADDRESS="EC:11:27:B:14:97"
# USE_PERSONAL_SSID: set custom ssid
USE_PERSONAL_SSID="BeagleBone"
# USE_PERSONAL_PASSWORD: set ssid password
USE_PERSONAL_PASSWORD="BeagleBone"
# USE_GENERATED_DNSMASQ: use generated version of
/etc/dnsmasq.d/SoftAp0; set to no so user can modify
/etc/dnsmasq.d/SoftAp0
USE_GENERATED_DNSMASQ=yes
# USE_GENERATED_HOSTAPD: use generated version of /etc/hostapd.conf;
set to no so user can modify /etc/hostapd.conf
USE_GENERATED_HOSTAPD=yes
# USE_APPENDED_SSID: appends mac address after SSID (aka -WXYZ, BeagleBone-WXYZ)
USE_APPENDED_SSID=yes
Here is a different way to do it, not sure if there are disadvantages, but for me easier to toggle the AP on and off.
sudo connmanctl
tether wifi on
or
sudo connmanctl
tether wifi off
In both of the cases above, the connection drops immediately. In the case of tether wifi off, my wireless router picks it up right away.
When using tether wifi on, the router drops the connection, but then I can connect peer-to-peer with laptop wifi. This is great for demos away from the home router.
Note that I have the Connman tether lines both set to no in the text file.
I don’t get AP and STA modes simultaneously with this method.