All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kai Ruhnau <kai.ruhnau@target-sg.com>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: The org.bluez.Network1 dbus interface does not emit PropertiesChanged signals on Disconnect
Date: Mon, 11 May 2020 17:33:05 +0000	[thread overview]
Message-ID: <AM0PR02MB3841E4C1CCA1B6ED919DB3B5C5A10@AM0PR02MB3841.eurprd02.prod.outlook.com> (raw)

Hi,

I'm using the dbus interface to connect to an iPhone Personal Hotspot using
Bluez 5.54 / Linux 5.4.32. When connecting, Bluez emits PropertiesChanged 
signals for the org.bluez.Network1 interface of the device informing me of
the Connected (true), Interface (bnep0) and UUID (00001116-...). However,
when disconnecting, no such signal is emitted. Querying the properties
shows, however, that the values reverted to the unconnected values.

When I disconnect by disabling the hotspot on the iPhone, the signal
is emitted.

To reproduce, run `busctl monitor org.bluez` on one console and issue

# busctl call org.bluez /org/bluez/hci0/dev_? org.bluez.Network1 Connect s 00001116-0000-1000-8000-00805f9b34fb

resulting in
- method_call
- signal PropertiesChanged for org.bluez.Device1 (Connected true)
- method_return
- signal PropertiesChanged for org.bluez.Network1 (Connected true)

and then

# busctl call org.bluez /org/bluez/hci0/dev_? org.bluez.Network1 Disconnect

resulting in
- method_call
- method_return
- signal PropertiesChanged for org.bluez.Device1 (Connected false)

but no PropertiesChanged for org.bluez.Network1 (Connected false).

Thanks and Cheers,
Kai

                 reply	other threads:[~2020-05-11 17:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR02MB3841E4C1CCA1B6ED919DB3B5C5A10@AM0PR02MB3841.eurprd02.prod.outlook.com \
    --to=kai.ruhnau@target-sg.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.