* DBus APIs for HCI/L2CAP?
@ 2011-07-21 22:05 ` Tom Allebrandi
2011-07-26 7:26 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 3+ messages in thread
From: Tom Allebrandi @ 2011-07-21 22:05 UTC (permalink / raw)
To: linux-bluetooth
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 :-).
Cheers!
--- tom
tom allebrandi
wyrles@ytram.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DBus APIs for HCI/L2CAP?
2011-07-21 22:05 ` DBus APIs for HCI/L2CAP? Tom Allebrandi
@ 2011-07-26 7:26 ` Luiz Augusto von Dentz
2011-07-26 16:40 ` Tom Allebrandi
0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2011-07-26 7:26 UTC (permalink / raw)
To: wyrles; +Cc: linux-bluetooth
Hi Tom,
On Fri, Jul 22, 2011 at 1:05 AM, Tom Allebrandi <wyrles@ytram.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: DBus APIs for HCI/L2CAP?
2011-07-26 7:26 ` Luiz Augusto von Dentz
@ 2011-07-26 16:40 ` Tom Allebrandi
0 siblings, 0 replies; 3+ messages in thread
From: Tom Allebrandi @ 2011-07-26 16:40 UTC (permalink / raw)
To: 'Luiz Augusto von Dentz', wyrles; +Cc: linux-bluetooth
Hi Luiz -
Tuesday, July 26, 2011 12:27 AM, Luiz Augusto von Dentz said:
> Hi Tom,
>
> On Fri, Jul 22, 2011 at 1:05 AM, Tom Allebrandi <wyrles@ytram.com> 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.
>
Ok. As I said, I'm trying to be a good boy. I've heard Marcel say words like
"use DBus not sockets" enough times that I was starting in from that end
:-). BTIO looks like a reasonable compromise.
Do you (or anyone) know if there is a Perl<->.so interface? (Perl for
Windows has an interface package that allows arbitrary functions to be
called from any old DLL. (I've never figured out XS.))
I'm not afraid of C/C++ programming, I just do a lot of my scripted type
stuff in Perl.
-----
In my case, I'm not actually implementing whole profiles. I'm more
interested in creating feature/function centric parts of profiles similar to
the way test cases work in PTS.
That, and some downstack support API thingies since {system("hcitool");} is
just clumsy.
Thanks for the info.
Cheers!
--- tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-26 16:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AcxH8lGl8ak3xCaSSCmiX6HP8t/C5Q==>
2011-07-21 22:05 ` DBus APIs for HCI/L2CAP? Tom Allebrandi
2011-07-26 7:26 ` Luiz Augusto von Dentz
2011-07-26 16:40 ` Tom Allebrandi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).