From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] multiple server-instances on one single machine
Date: Wed, 13 Jun 2007 04:46:18 +0200 [thread overview]
Message-ID: <1181702778.6872.90.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <466D2E82.7070805@bluecellnetworks.com>
Hi Uli,
> I'm trying to build a Bluteooth - receiver, which uses multiple
> bluetooth-devices and has a server running for each stick.
> (Background is, that i need a machine for testing-purposes to test a
> bluetooth-sender. I need multiple parallel connections to test the
> transferspeed etc.)
>
> I Took the sources of obexpushd 0.4 (debianpackage) and modified them,
> so the obexpushd can be started with -DhciX to use a certain hci device.
> This works perfect, if i start the server on hci2 for example, only hci2
> gets the files. The big problem is, when i start a second instance of
> the obexpushd eg. on hci3, only hci3 gets the content and hci2 not.
>
> I tracked down the problem and can say, that the sdpd promotes the
> OBEX-PUSH Service for each stick and not only for the one i want it to.
>
> I altered the obexpush-sdp.c file from
>
> session = sdp_connect(BDADDR_ANY,BDADDR_LOCAL,SDP_RETRY_IF_BUSY);
> status = sdp_record_register(session,rec,0);
>
> to
>
> session = sdp_connect(&btdev,BDADDR_LOCAL,SDP_RETRY_IF_BUSY);
> status = sdp_record_register(session,rec,0);
>
> where btdev is the bdaddr_t of the wanted hci-device, but i still get
> all running services promoted on all hci-devices.
the change in sdp_connect() gives you nothing when using BDADDR_LOCAL.
You need to use sdp_device_record_register() in the second step.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
prev parent reply other threads:[~2007-06-13 2:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 12:57 [Bluez-users] BD address Aveek Adhya
2007-06-08 13:13 ` Eng. Waleed S. Al-Rashoud
2007-06-11 6:12 ` Aveek Adhya
2007-06-11 11:14 ` [Bluez-users] multiple server-instances on one single machine Uli Sesselmann
2007-06-13 2:46 ` Marcel Holtmann [this message]
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=1181702778.6872.90.camel@aeonflux.holtmann.net \
--to=marcel@holtmann.org \
--cc=bluez-users@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