Linux bluetooth development
 help / color / mirror / Atom feed
From: db <dbrunelli@deis.unibo.it>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] connection timeout problems
Date: Wed, 04 May 2005 11:50:15 +0200	[thread overview]
Message-ID: <42789AD7.9090507@deis.unibo.it> (raw)


Hi all,

I looked at the hcitool.c source and I have noticed that the "to" 
parameter in hci_create_connection is set on 25000.

hci_create_connection(dd, &(info+i)->bdaddr,
htobs(di.pkt_type & ACL_PTYPE_MASK),
(info+i)->clock_offset | 0x8000,
0x01, &handle, 25000);

/** from hci.h **/
hci_create_connection(int dd, const bdaddr_t *bdaddr, uint16_t ptype, 
uint16_t clkoffset, uint8_t rswitch, uint16_t *handle, int to)


Is this parameter a timeout in msec?
Is it possible to reduce this value?
I need to perform the connection before 10 sec, and I prefer to kill the 
connection instead waiting for more time.

I have tryed to reduce this parameter, but after the return of the 
connection, It seems that no other connections are possible.

I get :    Can't create connection: Input/output error

and no more connections are possible (also to other devices).
I get a similar behaviour also if I kill the connecting process before 
the timeout.

regards
dB




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

             reply	other threads:[~2005-05-04  9:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-04  9:50 db [this message]
2005-05-04  9:55 ` [Bluez-users] connection timeout problems 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=42789AD7.9090507@deis.unibo.it \
    --to=dbrunelli@deis.unibo.it \
    --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