From: Marcel Holtmann <marcel@holtmann.org>
To: "Frédéric Danis" <frederic.danis@linux.intel.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v17 01/15] doc: Add telephony interface documents
Date: Sat, 04 Aug 2012 21:37:30 -0700 [thread overview]
Message-ID: <1344141450.2083.30.camel@aeonflux> (raw)
In-Reply-To: <1343995640-19784-2-git-send-email-frederic.danis@linux.intel.com>
Hi Fred,
> Makefile.am | 2 +-
> doc/audio-api.txt | 87 +++++++++++++++++++++++++++++++++
> doc/audio-telephony-design.txt | 106 ++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 194 insertions(+), 1 deletion(-)
> create mode 100644 doc/audio-telephony-design.txt
I looked at this, and we should split this into two patches as well. And
it should be leading with the design document.
> diff --git a/doc/audio-telephony-design.txt b/doc/audio-telephony-design.txt
> new file mode 100644
> index 0000000..a5936f6
> --- /dev/null
> +++ b/doc/audio-telephony-design.txt
> @@ -0,0 +1,106 @@
Can we please get a proper design document. Something that introduces
the problem, describes the goal and how we are trying to achieve it.
> +The org.bluez.Telephony interface will simplify BlueZ code by focusing on
> +the Bluetooth communication part and by letting the external application (i.e.
> +oFono) take charge of the Telephony tasks (AT parsing and modem specific code).
> +So, it becomes simpler, easier to maintain and debug.
> +
> +External applications, which should implement AT parsing and telephony
> +part of HeadSet or HandsFree Profiles, will have to register an
Please use Headset and Handsfree in writing. And unless part of the
profile name itself, it is lower case profiles.
> +org.bluez.TelephonyAgent using this new interface. This will setup a SDP record
> +for the profile and a RFCOMM server listening for incoming connection.
> +
> +When a new device is connected, NewConnection method of TelephonyAgent is
> +called. The telephony agent should reply to it after proper communication
> +establishment (directly for HSP or after SLC setup completes for HFP).
We need to describe on how HFP 1.6 with wideband speech is handled as
well.
> +Interaction with the audio component (i.e. PulseAudio) will be done through the
> +MediaTransport object (passed to telephony agent during NewConnection call).
This is the one thing that is really unclear to me. How does this
actually help. The MediaTransport and TelephonyAgent should be
independent.
> +Here is some flowcharts of interactions between BlueZ, telephony agent (oFono)
> +and audio component (PulseAudio):
> +
> + .....> Bluetooth communication between headset and phone
> + -----> Dbus messages and signals
> +
> +SCO connection - AG initiated
> +
> + PulseAudio BlueZ HF
> + | | |
> + | transport acquire | |
> + |------------------------>| |
> + | | connect SCO |
> + | |<.............>|
> + | return SCO fd | |
> + |<------------------------| |
> + | | |
For every diagram it needs to have some sort of description.
> +
> +SCO connection - HF initiated
> +
> + PulseAudio BlueZ HF
> + | | |
> + | | connect SCO |
> + | |<.............>|
> + | state changed signal | |
> + |<------------------------| |
> + | | |
> + | transport acquire | |
> + |------------------------>| |
> + | | |
> + | return SCO fd | |
> + |<------------------------| |
> + | | |
> +
> +AT+NREC
> +
> + HF oFono BlueZ PulseAudio
> + | AT+NREC | | |
> + |................>| | |
> + | | SetProperty | |
> + | |-------------->| |
> + | | | property changed |
> + | | | signal |
> + | | |----------------->|
> +
> +
> ++BSIR
> +
> + HF oFono BlueZ PulseAudio app
> + | | | | |
> + | | | |<------------|
> + | | | SetProperty | |
> + | | |<--------------| |
> + | | | | |
> + | | property changed signal | |
> + | |<------------*-------------->| |
> + | +BSIR:x | | | |
> + |<............| | | |
> + | | | | |
> +
> +
> +AT+VGS,AT+VGM
> +
> + HF oFono BlueZ PulseAudio app
> + | | | | |
> + | AT+VGS=xx | | | |
> + |............>| | | |
> + | | SetProperty | | |
> + | |------------>| | |
> + | | | | |
> + | | property changed signal | |
> + | |<------------*-------------->| |
> + | | | |------------>|
> + | | | | |
> +
> +
> ++VGS,+VGM
> +
> + HF oFono BlueZ PulseAudio app
> + | | | | |
> + | | | |<------------|
> + | | | SetProperty | |
> + | | |<--------------| |
> + | | | | |
> + | | property changed signal | |
> + | |<------------*-------------->| |
> + | +VGS:xx | | | |
> + |<............| | |------------>|
> + | | | | |
Regards
Marcel
next prev parent reply other threads:[~2012-08-05 4:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 12:07 [PATCH v17 00/15] Add org.bluez.Telephony interface Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 01/15] doc: Add telephony interface documents Frédéric Danis
2012-08-05 4:37 ` Marcel Holtmann [this message]
2012-08-06 20:30 ` Luiz Augusto von Dentz
2012-08-09 10:03 ` Frederic Danis
2012-08-09 14:42 ` Luiz Augusto von Dentz
2012-08-10 10:09 ` Frederic Danis
2012-08-03 12:07 ` [PATCH v17 02/15] doc: Add HSP HS channel to assigned numbers Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 03/15] audio: Move telephony drivers to D-Bus interface Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 04/15] audio: Simplify org.bluez.Headset Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 05/15] audio: Remove dummy telephony driver Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 06/15] audio: Remove maemo5 " Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 07/15] audio: Remove maemo6 " Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 08/15] audio: Remove oFono " Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 09/15] audio: Move HFP/HSP AG servers to telephony.c Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 10/15] audio: Send transport path to telephony agent Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 11/15] audio: Move HFP HF server to telephony.c Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 12/15] audio: Add DUN GW to org.bluez.Telephony Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 13/15] audio: Add SAP " Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 14/15] adapter: Add API to get fast connectable mode Frédéric Danis
2012-08-03 12:07 ` [PATCH v17 15/15] audio: Add fast connectable to telephony interface Frédéric Danis
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=1344141450.2083.30.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=frederic.danis@linux.intel.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;
as well as URLs for NNTP newsgroup(s).