RE: Multiple instances of same characteristics (was: Re: GATT Dbus API on BlueZ - attirbute-api.txt modifications)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Anderson,


-----Original Message-----
From: Anderson Lizardo [mailto:anderson.lizardo@xxxxxxxxxxxxx] 
Sent: Tuesday, November 01, 2011 3:57 AM
To: Claudio Takahasi
Cc: Tsai, Mike; linux-bluetooth@xxxxxxxxxxxxxxx; Vijaykumar Dadmode; Ganir, Chen
Subject: Re: Multiple instances of same characteristics (was: Re: GATT Dbus API on BlueZ - attirbute-api.txt modifications)

Hi Mike,

>> [MT]How can this handle the multiple instances of same characteristics within a single service? The characteristic UUID will not be unique in that case.

In BlueZ GATT services are represented by a D-Bus object path, in the format:

<device-path>/service<handle1>/characteristic<handle2>

Where <device-path> is a path specific to a device connected to a adapter (there can be multiple adapters on the same host), and <handle1>/<handle2> are attribute handles for the service and characteristic declarations, respectively.

Example:

/org/bluez/2161/hci0/dev_00_02_5B_00_D5_D0/service0001/characteristic000a

So, even if you have multiple characteristics with same UUID, they will have different declaration handles, and thus different object paths in D-Bus.

[MT]Thanks, that answers my question. Profile actually gets both characteristic UUID and Attribute handle during discovery, not just the UUID. Profile may either set property or read/write specific characteristic based on the combination of UUID+Attribute handle, not just the UUID. We should make sure that is also true to the new API and probably update the text inside attribute_api.text.

>> Also, how is the profile specific characteristic descriptor handled?

I think Chen's proposal does not address this. But there was another proposal sent by Vijaykumar Dadmode on Oct 4th (subject "Proposal for GATT Client Dbus API") to this list where it was handling profile-specific descriptors. We made some comments on it, and we are waiting for an updated proposal.

We need to consolidate at least these two proposals: Chen's and Vijaykumar's.

[MT]Yes, this is required for upcoming profile/service like HID and Automation,

Regards,

Mike

Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux