Return-Path: Date: Mon, 10 Sep 2012 20:58:38 -0300 From: Vinicius Costa Gomes To: John Tobias Cc: linux-bluetooth@vger.kernel.org Subject: Re: Dropping connection (bit off-topic) Message-ID: <20120910235838.GA26986@samus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi John, On 16:34 Mon 10 Sep, John Tobias wrote: > Just to follow up, I used hcidump and found out an interesting info: > > bdaddr 5C:35:3C:72:B2:AF type 1 > > HCI Event: Command Status (0x0f) plen 4 > LE Create Connection (0x08|0x000d) status 0x00 ncmd 1 > > HCI Event: LE Meta Event (0x3e) plen 19 > LE Connection Complete > status 0x00 handle 77, role master > bdaddr 5C:35:3C:72:B2:AF (Random) > > ACL data: handle 77 flags 0x02 dlen 11 > ATT: Read By Type req (0x08) > start 0x0001, end 0xffff > type-uuid 0x2a00 > > HCI Event: Disconn Complete (0x05) plen 4 > status 0x00 handle 77 reason 0x13 > Reason: Remote User Terminated Connection > > > The iPhone was requesting for "ATT: Read By Type req (0x08)" and the > gatttool seems not reponding. So, after 30 secs the iPhone dropped the > connection. > > Any idea how the gatttool could respond to the said request?. The problem is that gatttool still hasn't any support for sending responses. bluetoothd has, if you enable GATT support, 'EnableGatt' in '/etc/bluetooth/main.conf' (usual location). But using 'bluetoothd' means that will need to use the D-Bus API, which makes me wonder that having a simple GATT server inside gatttool makes some sense, for some use cases. > > Regards, > > john > > > On Mon, Sep 10, 2012 at 2:35 PM, John Tobias wrote: > > Hello Guys, > > > > I am using pandaboard with USB BLE dongle and an apps in iPhone that > > do the advertising. I was able to connect to the said device from my > > pandaboard using the following commands: > > > > gatttool -i hci1 -m 27 -I -b 74:xx:xx:xx:xx:xx > > connect > > > > But, I've noticed that after 30 secs, the iPhone dropped off the > > connection. I am just wondering if anyone here have tried playing with > > the iPhone using the ble connection?. > > > > Regards, > > > > John > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Cheers, -- Vinicius