Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] connection timeout problems
@ 2005-05-04  9:50 db
  2005-05-04  9:55 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: db @ 2005-05-04  9:50 UTC (permalink / raw)
  To: bluez-users


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-users] connection timeout problems
  2005-05-04  9:50 [Bluez-users] connection timeout problems db
@ 2005-05-04  9:55 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-05-04  9:55 UTC (permalink / raw)
  To: bluez-users

Hi,

> 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.

this is not the page timeout and you have to reduce the page timeout to
get the desired effect.

Regards

Marcel




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-04  9:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-04  9:50 [Bluez-users] connection timeout problems db
2005-05-04  9:55 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox