# connmanctl config wifi_xxxxx_xxxxx_managed_psk --ipv4 manual 192.168.2.x 255.255.255.0 192.168.2.1
# connmanctl config wifi_xxxxx_xxxxx_managed_psk --nameservers 192.168.2.1
# connmanctl config wifi_xxxxx_xxxxx_managed_psk --ipv6 off
Or even set it to connect to a hidden SSID by going directly into the configurations file. /var/lib/connman/
cd /var/lib/connman/
sudo su
cd wifi_xxxxx_xxxxx_managed_psk#
And add Hidden=true to the settings file using your favorite text editor.
Hans,
Many thanks for the response. It gave me a couple of important clues.
It turns out that the problem isn’t the configuration files. As you say, they are actually created automatically when you connect manually with connmanctl. However, wlan0 still wasn’t connecting at boot time after rebooting. I saw in the logs: “wlan0: link is not ready”.
It looks like creating a script/service to connect at boot time with connmanctl is the fix for this. You can read about that here:
https://groups.google.com/d/msg/beagleboard/jFJ_cOdh0Zk/JTImXUYWCQAJ
The end result of what is described there (and in the wildly/criminally out of date Adafruit github repo) is that two files are created:
/opt/wifi-reset/wifi-reset.sh
This is what is in that file:
-----------------------
sleep 30
connmanctl connect wifi_*_managed_psk
----------------------
and
/lib/systemd/system/wifi-reset.service
This is what’s in that file:
-------------------
[Unit]
Description=Wireless Network Reset
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/bash /opt/wifi-reset/wifi-reset.sh
[Install]
WantedBy=multi-user.target
--------------------------------
If you manually connected to wifi using connmanctl before rebooting, wifi should be connected after reboot now. As mentioned in that article, the ethernet port must be disconnected for wifi to connect at boot time.
A couple of notes:
Thanks again for the response and help, Hans!
Llew
Op zondag 15 maart 2020 16:40:62 UTC+1 schreef Hans Leeuw:
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/beagleboard/1o9h87ijuuA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
beagleboard...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/fb159725-c761-452b-a85d-40f3c30b58b8%40googlegroups.com.