From: "Collin R. Mulliner" <collin@betaversion.net>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] How I can select between 2 bluetooth devices?
Date: Thu, 17 May 2007 11:34:48 +0200 [thread overview]
Message-ID: <1179394491.14671.37.camel@panic> (raw)
In-Reply-To: <200705171018.19781.fernando@bluexare.org>
you can do this in a very simple way, just do the connect by hand (bind
to a specific bluetooth device before connect) then pass the file
descriptor to the OBEX library. OBEX will run in normal FD (file
descriptor) mode then. For this to work you also need to do the sdp
lookup yourself, but this is easy.
Collin
On Thu, 2007-05-17 at 10:18 +0200, Fernando Unzu wrote:
> Hi Vikas,
> Yes, this is I want to achieve.
> =
> I don't understand very well the code, but I uses OBEX_GetUserData, =
> OBEX_HandleInput, OBEX_CancelRequest, OBEX_ObjectNew, OBEX_Delete, =
> OBEX_TransportConnect and more like these, and in all of them I use a Han=
dle, =
> created by OBEX_Init (OBEX_TRANS_BLUETOOTH, obex_event, 0).
> =
> So I Think this is the way..., but I don't know if it is, or how to do...
> =
> in other functions I use hci_create_connection to create the handle, I th=
ink.
> =
> How you can see, I don't understand good the code.
> =
> How I can separate the two dongles to doing separated functions?
> =
> Thanks a lot,
> Fernando
> =
> =
> El Jueves, 17 de Mayo de 2007 07:05, Vikas Sinha escribi=F3:
> > Hi, Fernando
> >
> > If i am not wrong u have 2 Dongles and u want to use one for scan and o=
ther
> > for file send... ??
> >
> > am I right ...
> >
> > On 5/16/07, Fernando Unzu <fernando@bluexare.org> wrote:
> > > Hello,
> > > I'm working in an application that scans for bluetooth devices and se=
nd
> > > some
> > > content to they...
> > >
> > > Due to several issues, I need to separate the action scan and send
> > > between two
> > > devices...
> > >
> > > I have the code for doing this in one bluetooth device, and I don't k=
now
> > > very
> > > well how it works, but I have read it some times...
> > >
> > > But I don't find where i can select which bluetooth device I want to =
use
> > > to
> > > doing one method or other...
> > >
> > > I have seen that "OBEX_Init" creates a handle to manage the conection=
...,
> > > but
> > > it can be select which bluetooth device select for doing this handle?
> > >
> > > Thank you very much and I hope somebody understand me.
> > >
> > > Fernando
> > >
> > > ---------------------------------------------------------------------=
----
> > > 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-devel mailing list
> > > Bluez-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/bluez-devel
> =
> -------------------------------------------------------------------------
> 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-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
--
Collin R. Mulliner <collin@betaversion.net>
BETAVERSiON Systems [www.betaversion.net]
info/pgp: finger collin@betaversion.net
Life is hard, but unfair!
-------------------------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-05-17 9:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 10:35 [Bluez-devel] How I can select between 2 bluetooth devices? Fernando Unzu
2007-05-17 5:05 ` Vikas Sinha
2007-05-17 8:18 ` Fernando Unzu
2007-05-17 9:34 ` Collin R. Mulliner [this message]
2007-05-17 10:55 ` Vikas Sinha
2007-05-18 10:19 ` Fernando Unzu
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=1179394491.14671.37.camel@panic \
--to=collin@betaversion.net \
--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 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.