From: Szymon Janc <szymon.janc@tieto.com>
To: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Jakub Tyszkowski <jakub.tyszkowski@tieto.com>,
linux-bluetooth <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCHv2 01/23] android/hal-gatt-api: Add missing opcodes in GATT Service
Date: Thu, 27 Feb 2014 12:23:46 +0100 [thread overview]
Message-ID: <1930503.e6GWdHqHfD@uw000953> (raw)
In-Reply-To: <CAF3PWx18FXpEN7wxn6v3hncD_8nYdHs1J0Fevd7pOhQr=YuNVw@mail.gmail.com>
Hi,
On Wednesday 26 of February 2014 12:34:29 Andrzej Kaczmarek wrote:
> Hi Marcel,
>
> On 26 February 2014 09:51, Marcel Holtmann <marcel@holtmann.org> wrote:
> > Hi Jakub,
> >
> >> Add missing Listen and Set Advertising Data opcodes and reorder them as
> >> they appear in HAL's headers.
> >
> > I left this out originally since they are only useful for when we are a peripheral. Curious to know if Android APIs actually support this.
>
> It does, but not as public API - internal apps can still use them but
> only if platform has config_bluetooth_le_peripheral_mode_supported
> flag set, so perhaps this is for some gadgets running Android.
>
> > GATT client and server are valid for central role. And the connect/disconnect need to be turned into being one pair of commands. No point in duplicating them. There is really no difference between a GATT client and server connect. The central will connect to the peripheral. Unless Android got fully confused and uses the APIs wrongly.
>
> These commands are separated for client and server since they have
> either client or server app id as parameter which is later used to
> dispatch callbacks to proper application. So using one pair of
> commands (and single notification) we can still figure out which
> callback to use in HAL as long as we have 'type' parameter for app id.
I'd keep our IPC as close to HAL API as possible and go with separate commands
and notifications. Especially since otherwise we need to add type field as
pointed by Andrzej.
--
Best regards,
Szymon Janc
next prev parent reply other threads:[~2014-02-27 11:23 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-26 8:40 [PATCHv2 00/23] Add GATT Client Messages Jakub Tyszkowski
2014-02-26 8:40 ` [PATCHv2 01/23] android/hal-gatt-api: Add missing opcodes in GATT Service Jakub Tyszkowski
2014-02-26 8:51 ` Marcel Holtmann
2014-02-26 11:34 ` Andrzej Kaczmarek
2014-02-27 11:23 ` Szymon Janc [this message]
2014-02-26 8:41 ` [PATCHv2 02/23] android/hal-gatt-api: Add Client Register Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 03/23] android/hal-gatt-api: Add Client Unregister Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 04/23] android/hal-gatt-api: Add Client Scan Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 05/23] android/hal-gatt-api: Add Client Connect Remote Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 06/23] android/hal-gatt-api: Add Client Disconnect Remote Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 07/23] android/hal-gatt-api: Add Client Listen Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 08/23] android/hal-gatt-api: Add Client Refresh Remote Cache Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 09/23] android/hal-gatt-api: Add Client Search Service Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 10/23] android/hal-gatt-api: Add Client Get Included Service Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 11/23] android/hal-gatt-api: Add Client Get Characteristic Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 12/23] android/hal-gatt-api: Add Client Get Descriptor Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 13/23] android/hal-gatt-api: Add Client Read Characteristic Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 14/23] android/hal-gatt-api: Add Client Write Characteristic Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 15/23] android/hal-gatt-api: Add Client Read Descriptor Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 16/23] android/hal-gatt-api: Add Client Write Descriptor Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 17/23] android/hal-gatt-api: Add Client Execute Write Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 18/23] android/hal-gatt-api: Add Client Register for Notification Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 19/23] android/hal-gatt-api: Add Client Deregister " Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 20/23] android/hal-gatt-api: Add Client Read Remote RSSI Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 21/23] android/hal-gatt-api: Add Client Get Device Type Jakub Tyszkowski
2014-02-27 14:43 ` [PATCH] " Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 22/23] android/hal-gatt-api: Add Client Set Advertising Data Jakub Tyszkowski
2014-02-26 8:41 ` [PATCHv2 23/23] android/hal-gatt-api: Add Client Test Command Jakub Tyszkowski
2014-02-27 21:15 ` [PATCHv2 00/23] Add GATT Client Messages Szymon Janc
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=1930503.e6GWdHqHfD@uw000953 \
--to=szymon.janc@tieto.com \
--cc=andrzej.kaczmarek@tieto.com \
--cc=jakub.tyszkowski@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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