From: Marco Trudel <mtrudel@gmx.ch>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] error on connect
Date: Tue, 19 Apr 2005 17:24:54 +0200 [thread overview]
Message-ID: <426522C6.10700@gmx.ch> (raw)
In-Reply-To: <1113923580.2469.7.camel@pegasus>
Marcel Holtmann wrote:
> Hi Marco,
>
>
>>>I don't had the time to search my Broadcom dongles.
>>
>> > Maybe you should try to get yourself some CSR based dongles.
>>
>>Unfortunately I'm bound to the broadcom dongles for multipe reasons, so I'd
>>be very grateful if you could take a look at the problem.
>>
>>I did some hcidump tests and I think I figured out the source of the
>>problem. Please forgive me that this email contains some information I
>>already postet, it's just to give a whole picture...
>>This is the start of a successfull connection (please note my added #N#):
>>
>> > HCI Event: Connect Request (0x04) plen 10
>> bdaddr 00:02:72:C3:F2:10 class 0x3e0100 type ACL
>>< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
>> bdaddr 00:02:72:C3:F2:10 role 0x01
>> Role: Slave
>> > HCI Event: Command Status (0x0f) plen 4
>> Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
>>#1#
>>#1#
>> > HCI Event: Connect Complete (0x03) plen 11
>> status 0x00 handle 7 bdaddr 00:02:72:C3:F2:10 type ACL encrypt 0x00
>>< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
>> handle 7 policy 0x0f
>> Link policy: RSWITCH HOLD SNIFF PARK
>> > HCI Event: Command Complete (0x0e) plen 6
>> Write Link Policy Settings (0x02|0x000d) ncmd 1
>> status 0x00 handle 7
>>< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
>> handle 7 ptype 0xcc18
>> Packet type: DM1 DM3 DM5 DH1 DH3 DH5
>>#2# > ACL data: handle 7 flags 0x02 dlen 12
>>#2# L2CAP(s): Connect req: psm 3 scid 0x0040
>>
>>
>>If a broadcom dongle is listening, sometimes the ACL packet marked with #2#
>>is received where the #1# lines are. Actually, looking at the hcidump of
>>the sending dongle, that's the time the packet is sent (alway, dongle
>>independant).
>
>
> do you have a dump where this actually happens?
the dump of the listeining or the sending dongle?
for the listening one, I sent a hcidump from a successfull and failed
connection. with a diff, you see exactly what I described.
>>It looks like this too early packet now causes the (sensefull)
>>"hci_acldata_packet: hci1 ACL packet for unknown connection handle 6"
>>kernel error message. The dongle then waits for this acl package and thinks
>>this connection is in etablishing phase, so it is blocked.
>
>
>>>From a quick look at the kernel code, it seems that an ACL packet for an
> unknown connection handle may corrupt the HCI flow control.
I think exactly this happens...
>>The question now is, who is responsible for holding this packed back? The
>>kernel? The dongle itself?
>
>
> The dongle is responsible for that and actually it is only allowed to
> send data packets after the "Connect Complete" event. Otherwise we don't
> know its handle and thus can't correctly assign it to a connection.
but then it's strainge that these ACL packets are always sent before the
"connection" successfull packet. or do I right now miss something?
regards
Marco
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2005-04-19 15:24 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-15 17:52 [Bluez-users] error on connect Marco Trudel
2005-04-15 23:20 ` Marcel Holtmann
2005-04-16 19:07 ` Marco Trudel
2005-04-16 20:09 ` Marcel Holtmann
2005-04-17 1:33 ` Marco Trudel
2005-04-17 1:46 ` Marcel Holtmann
2005-04-17 10:17 ` Marco Trudel
2005-04-18 18:13 ` Marco Trudel
2005-04-18 18:41 ` Marcel Holtmann
2005-04-19 14:48 ` Marco Trudel
2005-04-19 15:13 ` Marcel Holtmann
2005-04-19 15:24 ` Marco Trudel [this message]
2005-04-19 15:47 ` Marcel Holtmann
2005-04-19 16:00 ` Marco Trudel
2005-04-19 16:13 ` Marcel Holtmann
2005-04-19 16:32 ` Marco Trudel
2005-04-19 16:51 ` Marcel Holtmann
2005-04-19 22:11 ` Marco Trudel
2005-04-19 22:32 ` Marcel Holtmann
2005-04-20 12:17 ` Marco Trudel
2005-04-20 12:32 ` Marcel Holtmann
2005-04-20 12:44 ` Marco Trudel
2005-04-24 12:53 ` Marco Trudel
2005-04-24 14:48 ` 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=426522C6.10700@gmx.ch \
--to=mtrudel@gmx.ch \
--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