From: sudeepta bhuyan <sudeepta.bhuyan@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re-connect to BLE device in response to ADV_DIRECT_IND
Date: Tue, 4 Apr 2017 18:59:00 +0530 [thread overview]
Message-ID: <CA+TC0NoAX-B362BS=s-kk3bhi4k75ygYV_Lix6F9vDoJsTMS-w@mail.gmail.com> (raw)
Hello all,
I'm a BlueZ newbie and wanted your help regarding a problem that I'm
facing with a BLE project.
I'm running BlueZ 5.42 in my linux machine and have written a
bluetooth application which communicates with a BLE device.
The application uses bluez dbus APIs for pairing and connecting to the
BLE device (device-api.txt and adapter-api.txt).
The BLE device is programmed to disconnect if left idle and send
ADV_DIRECT_IND if woken up.
Using hcidump tool, I see that bluetoothd on my machine indeed
receives the ADV_DIRECT_IND message from the BLE device. However I'm
not able to figure out how my application can be made aware that such
an advertisement has been received and it should now reconnect to the
BLE device.
I do not see any dbus API or signal using which the application can be
made aware of this event.
Could you suggest me a solution to this? Are there any low level
settings/configuration which would make bluetoothd automatically
reconnect to the BLE device if it receives an ADV_DIRECT_IND?
Appreciate your help.
Thanks,
Sudeepta
next reply other threads:[~2017-04-04 13:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-04 13:29 sudeepta bhuyan [this message]
2017-04-05 1:14 ` Re-connect to BLE device in response to ADV_DIRECT_IND Marcel Holtmann
2017-04-05 11:16 ` Luiz Augusto von Dentz
2017-04-05 11:25 ` sudeepta bhuyan
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='CA+TC0NoAX-B362BS=s-kk3bhi4k75ygYV_Lix6F9vDoJsTMS-w@mail.gmail.com' \
--to=sudeepta.bhuyan@gmail.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.