Return-Path: MIME-Version: 1.0 In-Reply-To: <04f101cc47f2$652cbbf0$2f8633d0$@ytram.com> References: <04f101cc47f2$652cbbf0$2f8633d0$@ytram.com> Date: Tue, 26 Jul 2011 10:26:35 +0300 Message-ID: Subject: Re: DBus APIs for HCI/L2CAP? From: Luiz Augusto von Dentz To: wyrles@ytram.com Cc: linux-bluetooth Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Tom, On Fri, Jul 22, 2011 at 1:05 AM, Tom Allebrandi wrote: > Hi - > > Is there a DBus API for issuing HCI commands? I want to be able to issue > vendor specific commands. > > Also, I want to be able set the Limited Inquiry Access Code for both > discovery and discoverability. I see the Discoverable property in > org.bluez.Adapter but I don't see any way to set the IAC. > > Similarly, is there a DBus API for L2CAP? I need to be able to manually > setup channels and control the packets that I send over those channels. > > I'm working with profiles that are not yet implemented in BlueZ. Also, I > need to be able to generate malformed packets for test purposes. > > I'm pretty sure that I can do all of the above with BTIO or the socket > interface. I'm just trying to be a good boy and use DBus :-). D-Bus is not really meant for data, it is a high level/convenient API for applications, so if you are trying to implement a profile you should probably stick with sockets or use BTIO as bluetoothd and obexd does. Regards, -- Luiz Augusto von Dentz