Return-Path: MIME-Version: 1.0 In-Reply-To: References: <20120910235838.GA26986@samus> Date: Thu, 13 Sep 2012 14:36:47 -0400 Message-ID: Subject: Re: Dropping connection (bit off-topic) From: Anderson Lizardo To: John Tobias Cc: Vinicius Costa Gomes , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi John, On Thu, Sep 13, 2012 at 2:18 PM, John Tobias wrote: > Hi Anderson, > > Here's what I did: > > I set the EnableGatt=true and executed my bluetoothd. The debug > messages of bluetoothd confirmed that it was responding to the request > of my iPhone. Which messages did you see? > > I used gatttool to connect to the device and read the characteristic.. gatttool is only for testing. It will open a bluetooth socket and talk directly with the kernel (without bluetoothd help). In fact, it runs just fine without any bluetoothd running (you need to do a "hciconfig hciX up" though). If you want your app to properly integrate with bluetoothd, you need to create connections using BlueZ's D-Bus APIs. Take a look at some example code: test/test-device (if you need to do the pairing from your application) test/test-attrib (if you want to talk to some profile not supported by BlueZ yet) test/test-thermometer (for GATT Health Thermometer) test/test-proximity (for GATT Proximity) ... if the profile you want to use is one of the official ones, we encourage you implement them as a BlueZ plugin, and provide some D-Bus API that your app (or other apps) can use. That way we avoid duplicating profile implementations. See for example the thermometer (HTP) and proximity (PXP) implementations in BlueZ. Some others are in process of being implemented upstream: Battery, Heart Rate, and Server profiles (Time, Alert Notification, Phone Alert Status). Best Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil