I pulled the latest connman and was able to run monitor-connman. The attached log is what I got when I:
1) stopped connman
2) started connman
3) turned off the radio
4) waited until my phone and other devices were online with that SSID
5) typed 'connmanctl scan wifi' got no return
6) typed ctrl c
7) typed 'connmanctl services'

I noted that after I initiated the scan even though connman reported nothing, it had already begun the connection and connected. We have noticed that if we type 'iwctl station wlan0 scan' or, apparently 'connmanctl scan wifi' that it will initiate and complete a scan. I wonder if the fact that connman 1.38 never returns with a scan complete message is a hint? The monitor-connman.txt is what showed in the terminal when I ran the script. The monitor-connman-journal.txt is what appeared in the journal for u- connman. At the same time the journalctl -iwd shows this:

Sep 24 07:29:14 keith-dell iwd[405]: Received Deauthentication event, reason: 3, from_ap: false
Sep 24 07:39:08 keith-dell iwd[405]: Received Deauthentication event, reason: 3, from_ap: true
Sep 24 07:39:08 keith-dell iwd[405]: Connected BSS not in scan results
Sep 24 07:39:08 keith-dell iwd[405]: authentication timed out

Is there some sort of timing problem?


On Wed, Sep 23, 2020 at 2:18 AM Daniel Wagner <wagi@monom.org> wrote:
On Tue, Sep 22, 2020 at 08:59:57AM -0500, KeithG wrote:
> I cannot find the monitor-iwd script.

This script is part of the iwd sources.

> I found the monitor-connman script,
> but when I try to run the monitor-connman script, I get a gobject error:
> $ ./monitor-connman
> Traceback (most recent call last):
>   File "./monitor-connman", line 3, in <module>
>     import gobject
> ModuleNotFoundError: No module named 'gobject'

The Python support for GLib gobject was always a bit troublesome and it
seems it aged really badly.

> This is even though I believe that python-gobject is installed and I can
> run the hello.py script on this page:
> https://pygobject.readthedocs.io/en/latest/getting_started.html
> python 3.8.5 and
> $ pacman -Q | grep gobject
> gobject-introspection 1.66.0-1
> gobject-introspection-runtime 1.66.0-1
> pygobject-devel 3.36.1-1
> python-gobject 3.36.1-1

I have the same problem with Python 3 on my distro. It still works with
Python 2. The test script need to use the dynamic version of the GLib
binding. See the other patch.

> I am now running on a pretty common dell laptop with an intel wifi card and
> get the same behavior. iwd 1.9 connman 1.38. I connected via connman then
> powered down the radio on the router then back on then had to reconnect by
> typing in teh password.  The journal of this event is attached.
> I did notice that in order to reconnect on this laptop (Arch Linux x86_64)
> that I had to type in the password again though I was just connected before
> I turned off the SSID. The journal running /usr/bin/connmand -n -d
> plugins/iwd.c:src/service.c though this event is attached.

I'll try to reproduce it later.