From: Marco Pracucci <development@pracucci.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] connect() and L2CAP_CONN_TIMEOUT
Date: Thu, 10 Aug 2006 11:47:54 +0000 [thread overview]
Message-ID: <44DB1CEA.2070001@pracucci.com> (raw)
In-Reply-To: <1155160420.4492.6.camel@aeonflux.holtmann.net>
Hi Marcel,
I have dump it (hcidump -i hci1 -t -X -V). Here I publish only
interesting commands and events:
2006-08-10 11:10:51.168745 < HCI Command: Create Connection
(0x01|0x0005) plen 13
bdaddr 00:07:80:81:03:E0 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
2006-08-10 11:10:51.171492 > HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
2006-08-10 11:10:54.773623 > HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 7B:00:00:01:C3:E0 role 0x00
Role: Master
2006-08-10 11:10:54.921650 > HCI Event: Connect Complete (0x03) plen 11
status 0x21 handle 1 bdaddr 7B:00:00:01:C3:E0 type ACL encrypt 0x00
Error: Role Change Not Allowed
No other related event has been received, but the connect() system call
returns after 40 seconds (2006-08-10 11:11:31). Have you any idea and/or
suggestion?
Marco Pracucci
P.S. bdaddr 7B:00:00:01:C3:E0 is wrong: is it a little bug of hcidump?
>> I need to be sure that an SDP connection does not take more than X
>> seconds. In order to achieve my goal, I have correctly set the page
>> timeout of my local device. However, if I'm right, the page timeout is
>> the max time the local Link Manager will wait for a baseband page
>> response. But what does it happen if the page request is successfully
>> completed and an error occur during the connection to L2CAP remote
>> "layer"? Is there a timeout for this? Maybe L2CAP_CONN_TIMEOUT...
>>
>> I have posted this message, because practical experiments demonstrate
>> that sometimes the sdp_connect() timeout expires after 40 seconds.
>>
>
> run "hcidump -X -V" to check what timeout you really run into.
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-08-10 11:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-09 15:51 [Bluez-devel] connect() and L2CAP_CONN_TIMEOUT Marco Pracucci
2006-08-09 21:53 ` Marcel Holtmann
2006-08-10 11:47 ` Marco Pracucci [this message]
2006-08-10 16:22 ` Marcel Holtmann
2006-08-10 18:12 ` Marco Pracucci
2006-08-10 19:04 ` Marcel Holtmann
2006-08-23 16:04 ` Marco Pracucci
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=44DB1CEA.2070001@pracucci.com \
--to=development@pracucci.com \
--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.