See inline.
On Tue, Aug 4, 2020 at 1:31 AM Daniel Wagner <wagi(a)monom.org> wrote:
Hi KeithG,
On Mon, Aug 03, 2020 at 04:56:26PM -0500, KeithG wrote:
> Just ran into this again, today when my son rebooted the router, all WiFi
> Pis lost their connection and did not reconnect. Anything we can do to
> help diagnose this?
Is the WiFi service configured to autoconnect?
connmanctl config <service> --autoconnect yes
it appears so:
~# connmanctl services wifi_b827eb52ccd0_73706733_managed_psk
/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk
Type = wifi
Security = [ psk ]
State = online
Strength = 47
Favorite = True
Immutable = True
AutoConnect = True
Name = spg3
Ethernet = [ Method=auto, Interface=wlan0, Address=B8:27:EB:52:CC:D0,
MTU=1500 ]
IPv4 = [ Method=dhcp, Address=192.168.2.41, Netmask=255.255.255.0,
Gateway=192.168.2.1 ]
IPv4.Configuration = [ Method=dhcp ]
IPv6 = [ Method=auto, Address=2601:241:4200:28d:ba27:ebff:fe52:ccd0,
PrefixLength=64, Privacy=disabled ]
IPv6.Configuration = [ Method=auto, Privacy=disabled ]
Nameservers = [ 192.168.2.1]
Nameservers.Configuration = [ ]
Timeservers = [ ]
Timeservers.Configuration = [ ]
Domains = [ griders ]
Domains.Configuration = [ ]
Proxy = [ Method=direct ]
Proxy.Configuration = [ ]
mDNS = False
mDNS.Configuration = False
Provider = [ ]
When querying it via iwctl, though it shows that it is not set:
# iwctl known-networks spg3 show
Known Network: spg3
--------------------------------------------------------------------------------
Settable Property Value
--------------------------------------------------------------------------------
Name spg3
Hidden
* AutoConnect no
and I cannot seem to be able to set it
~# iwctl known-networks spg3 set-property AutoConnect yes
~# iwctl known-networks spg3 show
Known Network: spg3
--------------------------------------------------------------------------------
Settable Property Value
--------------------------------------------------------------------------------
Name spg3
Hidden
* AutoConnect no
If I edit the /var/lib/iwd/spg3.psk file to change the AutoConnect value
from 'false' to 'true', it immediately changes back.
Is connman controlling this?
?
> Does the setting 'background scanning' do anything if you are using
> iwd?
No, it should not. As long ConnMan lists gets of station, there nothing
we need to tweak on wpa_supplicant or iwd. So if 'connmanctl services'
lists the service, all should be okay.
> Could that be why it doesn't reconnect?
I think it's missing the autoconnect flag.
> 'connmanctl scan' does not work with iwd...
Hmm, which version of iwd and ConnMan are you using. Versions before
ConnMan 1.38 do not work with recent iwd versions.
I built the latest connman from git (just in case?) and iwd is the 'latest'
from Arch.
connman-git 1.38.r11.g82699007-1
iwd 1.8-1
Oh, scanning does work now with iwd from connman! Sorry for mentioning it.
I guess that 'feature' came with an upgrade to iwd from 1.7 to 1.8.
Woo Hoo and thanks! This simplifies our PHP scripts.
This behavior of not reconnecting when the router is rebooted is noted on
an RPiB3+ running aarch64, an armv6 install on the RPi_Zero and on an armv7
install on a RPiB3.
All have Autoconnect=true
Thanks,
Daniel