public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Cris <ml133@netpole.com.br>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Automatic Object Pushing when Devices Enter Range
Date: Thu, 5 Oct 2006 08:10:12 -0300	[thread overview]
Message-ID: <20061005081012.1382fa2b.ml133@netpole.com.br> (raw)
In-Reply-To: <1118650597.20061004182027@magitech.org>

On Wed, 4 Oct 2006 18:20:27 -0700
"Benn" <bb.bluez@magitech.org> wrote:

> First of all, as you suggested, BlueZ may not be the right stack. Are the=
re
> logical alternative stacks available, or is it more a matter of using the
> underlying framework rather then the publicly exposed API?

I=B4m not a kernel hacker, so I can't really qualify bluez's stack, but
it seems that hardware support with bluez is quite good. I was talking
about libbluetooth.so; IIRC there was another bluetooth project for
linux, but it seems far less popular and supported less (or
different?) devices, so I didn't follow it. I do use the bluez kernel
stack but neither the library nor the daemons.

> You brought up authentication.  If I am OBEX pushing then, as the
> server, if I don't specify any authentication none will be required.
> Correct?  Are there other authentication related issues I should be
> aware of?

I've given up any attempt to understand how bluez security model
works, first because if the mentioned library deficiencies and second
because of the heavy shift to dbus in the last versions makes it
virtually impossible even to try to use it. The fact is that,
according to bluetooth specifications, authentication is not required
as long as neither of the peers request authentication.

> Can you point out where this loop actually resides in source, off hand?

Those functions in libbluetooth which require a timeout as an argument
internally call a function `hci_send_req()' in blues-libs/src/hci.c
which will send the command and wait for the answer. Rather than a
select-loop as I said yesterday, it's a poll loop, blocking the return
of the function until an answer arrives or a timeout happens.

> I'm not adverse to using the lower level API's if it truly becomes necess=
ary,
> but since the file transfers are small and fork()'ing seems a reasonable,
> though not ideal, solution, I might stick with that.  A central process t=
hat
> is responsible for discovery, forking off separate children to handle the
> actual file dispatches should work, yes?

Open two shells, prepare a commandline obextftp to send a file from
your linux box (only one bluetooth adapter) to two different
cellphones or PDAs in each, and start them more or less at the same
time. All attempts I made ended with one working immediately, the
other either waiting until the first finished or giving some
busy-error. As I believe that obexftp doesn't switch role, the linux
box should become the master of a 3-membered piconet and simultaneous
transmission should work. But bluez defeats that. Actually, up to five
more devices could join the party. But not with libbluetooth.so.

-- =

Cris

-------------------------------------------------------------------------
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=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2006-10-05 11:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 21:19 [Bluez-users] Automatic Object Pushing when Devices Enter Range bb.bluez
2006-10-05  0:29 ` Cris
2006-10-05  1:20   ` Benn
2006-10-05 11:10     ` Cris [this message]
2006-10-05  7:22   ` Marcel Holtmann
2006-10-05 11:27     ` Cris

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=20061005081012.1382fa2b.ml133@netpole.com.br \
    --to=ml133@netpole.com.br \
    --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