From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Problems with sdp_connect()
Date: Wed, 05 Oct 2005 13:24:49 +0200 [thread overview]
Message-ID: <1128511489.5102.0.camel@localhost.localdomain> (raw)
In-Reply-To: <20051005070755.21011.qmail@community29.interfree.it>
Hi,
> I am writing my thesis on Bluetooth programming under Linux and I would be grateful to you if you could give me hints to solve this problem. I have two bt devices on my laptop, both of them run the same program and register the same SDP service. When I register the service I call sdp_connect(&src, BDADDR_LOCAL, RETRY_IF_BUSY). It works but when I try to search the service from a device outside my laptop I discover the same service twice for each device. Resuming:
> - Bluetooth device A register a service C on my laptop --- sdp_connect(&srcA, BDADDR_LOCAL, ...)
> - Bluetooth device B register a service C on my laptop --- sdp_connect(&srcB, BDADDR_LOCAL, ...)
> - Searching service C on device A will find it twice instead of once
>
> I thought the problem was in BDADDR_LOCAL, which is defined as {0, 0, 0, 0xff, 0xff, 0xff} but if I try to register the service connecting with SDP server as sdp_connect(&srcA, &srcA, ...) it returns error "Host is down". I don't know where to hurt my head...
use the latest bluez-libs package and then you can register per device
services. Look at sdp_device_* functions or use the -i switch of
sdptool.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2005-10-05 11:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 7:07 [Bluez-devel] Problems with sdp_connect() lax
2005-10-05 11:24 ` Marcel Holtmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-10-05 13:31 lax
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1128511489.5102.0.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).