All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Extracting full SDP database from device at once using DBus API
@ 2006-11-20 16:54 Pierre-Yves Paulus
  2006-11-20 17:03 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre-Yves Paulus @ 2006-11-20 16:54 UTC (permalink / raw)
  To: Bluez-devel

Hello,

At the moment, to perform a full extraction of the SDP database of a 
device, I first perform a call to

array{uint32} GetRemoteServiceHandles(string address, string match)

with an empty "match" string. It does connect to Public Browse Group, 
and returns handles for all the ServiceRecords. I then perform a call

array{byte} GetRemoteServiceRecord(string address, uint32 handle)

for each of these handles, and I get all the data in binary form ti 
interpret myself.


1) Is it the right way to do this, or is there a way to get that all at 
once?

2) As ServiceRecords are extracted "one at a time", is Bluez connecting 
and disconnecting to the device each time? Is there a performance 
penalty in doing so? If I understand the output of hcidump well, it does 
not close he ACL link each time, but there is a L2CAP 
connection/disconnection for each ServiceRecord.

Thanks a lot,
Best Regards

Pierre-Yves

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] Extracting full SDP database from device at once using DBus API
  2006-11-20 16:54 [Bluez-devel] Extracting full SDP database from device at once using DBus API Pierre-Yves Paulus
@ 2006-11-20 17:03 ` Marcel Holtmann
  2006-11-21  9:58   ` Pierre-Yves Paulus
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2006-11-20 17:03 UTC (permalink / raw)
  To: BlueZ development

Hi Pierre-Yves,

> At the moment, to perform a full extraction of the SDP database of a 
> device, I first perform a call to
> 
> array{uint32} GetRemoteServiceHandles(string address, string match)
> 
> with an empty "match" string. It does connect to Public Browse Group, 
> and returns handles for all the ServiceRecords. I then perform a call
> 
> array{byte} GetRemoteServiceRecord(string address, uint32 handle)
> 
> for each of these handles, and I get all the data in binary form ti 
> interpret myself.
> 
> 
> 1) Is it the right way to do this, or is there a way to get that all at 
> once?

that is the way to go.

> 2) As ServiceRecords are extracted "one at a time", is Bluez connecting 
> and disconnecting to the device each time? Is there a performance 
> penalty in doing so? If I understand the output of hcidump well, it does 
> not close he ACL link each time, but there is a L2CAP 
> connection/disconnection for each ServiceRecord.

We should add a disconnect timeout to our SDP session and re-use it, but
that hasn't been done so far.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] Extracting full SDP database from device at once using DBus API
  2006-11-20 17:03 ` Marcel Holtmann
@ 2006-11-21  9:58   ` Pierre-Yves Paulus
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre-Yves Paulus @ 2006-11-21  9:58 UTC (permalink / raw)
  To: BlueZ development

Hi Marcel,

Thanks a lot for your kind answer.

Pierre-Yves



Marcel Holtmann wrote:
> Hi Pierre-Yves,
> 
>> At the moment, to perform a full extraction of the SDP database of a 
>> device, I first perform a call to
>>
>> array{uint32} GetRemoteServiceHandles(string address, string match)
>>
>> with an empty "match" string. It does connect to Public Browse Group, 
>> and returns handles for all the ServiceRecords. I then perform a call
>>
>> array{byte} GetRemoteServiceRecord(string address, uint32 handle)
>>
>> for each of these handles, and I get all the data in binary form ti 
>> interpret myself.
>>
>>
>> 1) Is it the right way to do this, or is there a way to get that all at 
>> once?
> 
> that is the way to go.
> 
>> 2) As ServiceRecords are extracted "one at a time", is Bluez connecting 
>> and disconnecting to the device each time? Is there a performance 
>> penalty in doing so? If I understand the output of hcidump well, it does 
>> not close he ACL link each time, but there is a L2CAP 
>> connection/disconnection for each ServiceRecord.
> 
> We should add a disconnect timeout to our SDP session and re-use it, but
> that hasn't been done so far.
> 
> Regards
> 
> Marcel
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-21  9:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20 16:54 [Bluez-devel] Extracting full SDP database from device at once using DBus API Pierre-Yves Paulus
2006-11-20 17:03 ` Marcel Holtmann
2006-11-21  9:58   ` Pierre-Yves Paulus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.