Return-Path: From: "Tsai, Mike" To: Anderson Lizardo , Claudio Takahasi CC: "linux-bluetooth@vger.kernel.org" , Vijaykumar Dadmode , "Ganir, Chen" Subject: RE: Multiple instances of same characteristics (was: Re: GATT Dbus API on BlueZ - attirbute-api.txt modifications) Date: Tue, 1 Nov 2011 20:21:47 +0000 Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Anderson, -----Original Message----- From: Anderson Lizardo [mailto:anderson.lizardo@openbossa.org] Sent: Tuesday, November 01, 2011 3:57 AM To: Claudio Takahasi Cc: Tsai, Mike; linux-bluetooth@vger.kernel.org; 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: /service/characteristic Where is a path specific to a device connected to a adapter (there can be multiple adapters on the same host), and / 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