Hi Keith, On 2/7/21 10:39 PM, KeithG wrote: > The group at connman has re-written connman and it now leverages the background > scanning in iwd as it allows the setting of 'AutoConnect=true' now. That > definitely helps, but I am still struggling to get the RPIs to effortlessly > reconnect. As it is, I have to manipulate the interface to force a reconnect (if > down/up) by running a script to check if the interface is up or down. > > For whatever reason, a reconnect is never tried unless we restart the iwd or > connman process or restart the interface. What I see is my android devices > reconnect in < 1 minute if I force a disconnect from the router or restart the > radio or reboot. I am running the latest git of iwd (r5144.074bc52). I force > disconnect from the router at 18:32. Then I wait. spg3 is my SSID. It scans and > 'sees' it but never initiates or tries a re-connect. If I do this with my phone > (Android 10), it is reconnected in less than 2 minutes. If I let iwd control it, If iwd reconnects properly, I'm not sure why you're asking this question here and not on the connman mailing list? > it reconnects in < 2 minutes as well. Is there something that connman is waiting > for to let connman know it is ready? Not really. Once iwd 'sees' it, connman should as well. Run monitor-iwd script from iwd.git/test to see all the communication going over d-bus. Alternatively you can run dbus-monitor, but that is harder to parse. > If I try the same thing with connman controlling it, it 'sees' the SSID, but > never triggers connman to reconnect. Should connman be looking for something? If > I restart iwd, it immediately connects. I get a ton of: To me, it looks like scanning is being driven over D-Bus by invoking Station.Scan(). It also looks like autoconnect has been forced off, perhaps via Station.Disconnect() being invoked? Hard to tell from this log, but looks iwd isn't trying to autoconnect and would instead rely on connman to trigger the connection. Regards, -Denis