From: "Pali Rohár" <pali.rohar@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: HSP/HFP profile daemon for bluez
Date: Thu, 17 Oct 2019 13:29:30 +0200 [thread overview]
Message-ID: <20191017112930.baovyz2n2qc2nzgj@pali> (raw)
Hello!
I would like to open a discussion about problems related to HSP and HFP
profiles usage via bluez D-Bus API.
Bluez daemon since version 5 does not provide internal AT command parser
and relay on application's implementation which registers itself to
bluez via D-Bus API. Application get then via D-Bus bluetooth socket /
file descriptor and therefore must implement whole HSP and HFP profiles.
HSP/HFP profiles today provide lot of different services, including
custom vendors extensions. E.g. bi-directional audio, controls for GSM
calls (answer, reject, ring event), push button notification, battery
status indication, etc...
Basically set of fully different services which are on Linux system
managed by totally different layers or applications. E.g. audio by
pulseaudio, modem by ofono, buttons by linux input layer, battery by
upowerd, ... Some of them are running under ordinary user, some of them
as root; and at different D-Bus levels (system or different user
sessions); so synchronization is hard and maybe not possible (in some
cases).
Plus because different devices use different and custom vendor
extensions, all these services cannot be implemented by one application
which receive bluetooth socket from bluez D-Bus API.
To solve this problem, I would propose a solution for this:
Implement a new central daemon talking on system D-Bus which would
register for HSP and HFP profiles to bluez and then would export needed
information via D-Bus, so other application could implement needed
services (including those new custom vendor extensions).
What do you think about it?
--
Pali Rohár
pali.rohar@gmail.com
reply other threads:[~2019-10-17 11:29 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=20191017112930.baovyz2n2qc2nzgj@pali \
--to=pali.rohar@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox