From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] suggestion for device control
Date: Wed, 06 Dec 2006 14:39:45 +0100 [thread overview]
Message-ID: <1165412385.2756.52.camel@localhost> (raw)
In-Reply-To: <20061206111617.d8f16a0c.ml133@netpole.com.br>
Hi,
> I'm not a kernel developer, but have a suggestion, which could benefit
> a fair amount of the user comunity.
>
> Unfortunately, BlueZ doesn't do always what a particular application
> needs, or it does it in a version of a kernel which is just not
> available to a particular device. Here is a suggestion which should be
> very simple to implement and could provide some relieve:
>
> Would it be possible to have one more socket option, an exclusive
> flag, which would allow a programmer to tell the kernel, that this
> application will take care of everything itself for the device the
> socket is bound to, and that the kernel should just pass the HCI
> packets to and from the controller? If this flag was not set,
> everything would be as it is now, otherwise, an application could do
> any non-standard operation with this device, without having to worry
> about interferences. A user could have at the same time one device for
> really strange stuff, but another using say an rfcomm device file with
> full kernel support.
you can tell the kernel to switch a HCI device into raw mode and after
that point you have full control over that device. However this of
course also means that you have to implement L2CAP and RFCOMM by
yourself.
If you don't like our L2CAP or RFCOMM implementation, you can always
write and load your own one. The kernel API is simple and open for that
stuff.
However all this stuff only works to a certain degree, because the
specification doesn't allow that much crazy stuff and our current
implementation are giving away the most freedom to developers. You might
wanna ask around people that are using other stacks. Handling Bluetooth
within BlueZ is really simple.
> According to a message in bluez-user, recently a user was in trouble
> because he isn't able to update the kernel of his devices to the
> latest version. This flag wouldn't help him today, but once it was
> available to his kernels, he might get a choice to work around his
> problem. As soon as anything non-standard needs to be done, this could
> be the only possible solution. Anyway, I don't think, that I'm alone
> here. Also, this option would fit well to linux philosophy where there
> is not one single windows wishing to control everything
> inconditionally.
You don't work around problems. You fix them. This is open source and if
someone wants to stick to its ancient kernel, then it is their problem.
I am not supporting people that stick to a 2.4 kernel on an embedded
systems, because some companies aren't able to port their architecture
to the 2.6 kernel series. And nobody has to use the latest 2.6 kernel,
but a 2.4 one is way too old and a 2.6.9 kernel is too.
Companies like Red Hat and SuSE have realized that a long time ago, that
you can't drift away from upstream. And even embedded products like
Nokia 770 and the TomTom GO are following the upstream kernel. This is
the way to go. Everything else will come and haunt you at some point. I
tried this with my -mh patches for 2.4 and I am not going to this ever
again.
Regards
Marcel
-------------------------------------------------------------------------
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=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-12-06 13:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 13:16 [Bluez-devel] suggestion for device control Cris
2006-12-06 13:39 ` Marcel Holtmann [this message]
2006-12-06 15:17 ` Cris
2006-12-06 15:28 ` Marcel Holtmann
2006-12-06 18:49 ` Cris
2006-12-08 10:16 ` Marcel Holtmann
2006-12-08 11:24 ` 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=1165412385.2756.52.camel@localhost \
--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