Thread (29 messages) flat view 29 messages, 5 authors, 2014-02-27

Re: [PATCHv2 01/23] android/hal-gatt-api: Add missing opcodes in GATT Service

From: Andrzej Kaczmarek <hidden>
Date: 2014-02-26 11:34:29

Hi Marcel,

On 26 February 2014 09:51, Marcel Holtmann [off-list ref] wrote:
Hi Jakub,
quoted
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 p=
eripheral. 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/discon=
nect need to be turned into being one pair of commands. No point in duplica=
ting them. There is really no difference between a GATT client and server c=
onnect. The central will connect to the peripheral. Unless Android got full=
y 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.

BR,
Andrzej
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help