2006-11-02 12:28:56

by Rupesh Gujare

[permalink] [raw]
Subject: Re: [Bluez-devel] Need Help In SDP Programming......


Thanks Peter and Mingfan for your suggestions and code review. I will definately try to improve on it.
I am currently working on 2.6.15 kernel. and had not applied any patch.
I will like to ask peter that which kernel you are using? Are you facing same problem after patching to latest kernel?
Do let me know.
Thanks and regards.
Rupesh

>
>I think the sleep(..) call causes a reschedule and allows the sdpd to
>finish some internal cleanup or so after a close. I got some similar
>behaviour even when connecting to the local sdp data base.
>
>To get your code a little bit faster you should not use the hci_inquiry()
>call. This does not only do the inquiry but also does a name request which
>requires a baseband connection to the remote device. It is much more
>efficient to do the name request as a part of the sdp request if you make
>the sdp request anyway (only one baseband connection for each device).
>
>Further, because most BT chips today allow for inquirie to run in the
>background, you can try to start SDP requests once you receive the BT
>address for a device and not when the inquiry is finished. However, this
>would require some much more complicated code and direct HCI socket
>programming. You may have a look at hcid to get an idea.
>
>Ciao,
>
>Peter


Attachments:
(No filename) (1.26 kB)
(No filename) (1.76 kB)
(No filename) (373.00 B)
(No filename) (164.00 B)
Download all attachments

2006-11-02 13:05:03

by Peter Wippich

[permalink] [raw]
Subject: Re: [Bluez-devel] Need Help In SDP Programming......


Hello Rupesh,

On Thu, 2 Nov 2006, Rupesh Gujare wrote:

>
> Thanks Peter and Mingfan for your suggestions and code review. I will
> definately try to improve on it.
> I am currently working on 2.6.15 kernel. and had not applied any patch.
> I will like to ask peter that which kernel you are using? Are you facing same problem after patching to latest kernel?
> Do let me know.
> Thanks and regards.
> Rupesh

The concurrency problem Mingfan talked about is not what causes your
problem. This would only show up when you use multiple threads to do
concurrent SDP connections, and you use a single thread.

I observed something similar as you with an unpatched 2.6.14 kernel.
Because this was on an embedded platform I have not tried newer versions
(this simply causes to much work just for a try).

Ciao,

Peter


| Peter Wippich Voice: +49 30 46776411 |
| G&W Instruments GmbH fax: +49 30 46776419 |
| Gustav-Meyer-Allee 25, Geb. 12 Email: [email protected] |
| D-13355 Berlin / Germany |


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel