From: "Lauri Lubi" <lauri@lubi.se>
To: "'BlueZ development'" <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Immediate disconnect after doing "hcitool cc"
Date: Mon, 18 Dec 2006 10:52:23 +0100 [thread overview]
Message-ID: <022d01c7228a$377febb0$9301a8c0@LUBI> (raw)
In-Reply-To: <1166434619.6557.55.camel@aeonflux.holtmann.net>
Well, I'm a man in a bad need of performance and have to create ACL
connections in the most optimized way. The current tests (hcidump) have
unfortunately showed that the Linux kernel (2.5.16) does make use of
pscan_repetition_mode, not sure about the clock_offset. Inquiry scan has
been done just seconds before connection attempts.
With this background I guess there are 2 ways out: messing with HCI directly
and taking the risk of kernel overriding me; or re-writing some
Bluetooth/sockets code in the kernel. Do you agree?
Does anybody have some good hints for where to start in the kernel source
tree? I would like to try modifying how the kernel creates an ACL
connection, and if some options (clock_offset and pscan_rep_mode) can be
passed to it. I guess that bluez-libs has nothing to do with how the kernel
implements HCI_CREATE_CONNECTION?
Mvh
Lauri Lubi
Mob +46 730 39 31 00
=
-----Ursprungligt meddelande-----
Fr=E5n: bluez-devel-bounces@lists.sourceforge.net
[mailto:bluez-devel-bounces@lists.sourceforge.net] F=F6r Marcel Holtmann
Skickat: den 18 december 2006 10:37
Till: BlueZ development
=C4mne: Re: [Bluez-devel] Immediate disconnect after doing "hcitool cc"
Hi,
> Is there more information available how the kernel creates an ACL
> connection? I have been reading source code for 2.6.13-15 but not seen
> anything about creating an ACL connection yet. Well, I am quite unfamiliar
> with the kernel source code.
> =
> I have re-written some parts of hcitool so that it uses clock_offset and
> pscan_repetition_mode when ACL-connecting. Is kernel code more optimised
> that this?
> =
> Q2: Any ideas for a good way to time kernel creating the ACL connection?
So
> that to compare with a "hacked" hcitool.
this is all the wrong approach. Create a L2CAP or RFCOMM connection and
the kernel will create any needed ACL link for you. Don't try to think
to complicate. If you try to mess around with connection reference
counting of the ACL the kernel will always win and simply disconnect the
link if it thinks it is no longer needed. Messing around directly with
HCI is never a good idea.
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=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-- =
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.23/591 - Release Date: 2006-12-17
15:17
=
-- =
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.23/591 - Release Date: 2006-12-17
15:17
=
-------------------------------------------------------------------------
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-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-12-18 9:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 6:13 [Bluez-devel] Immediate disconnect after doing "hcitool cc" Jon Barnett
2006-12-14 9:25 ` amateur
2006-12-15 2:05 ` Jon Barnett
2006-12-17 12:43 ` Marcel Holtmann
2006-12-17 17:37 ` Jon Barnett
2006-12-18 8:00 ` Lauri Lubi
2006-12-18 9:36 ` Marcel Holtmann
2006-12-18 9:52 ` Lauri Lubi [this message]
2006-12-18 11:55 ` Marcel Holtmann
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='022d01c7228a$377febb0$9301a8c0@LUBI' \
--to=lauri@lubi.se \
--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