connection timeout problems
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi,
Quoted 18 lines
I looked at the
hcitool.csource and I have noticed that the "to" parameter inhci_create_connectionis 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, constbdaddr_t*bdaddr,uint16_tptype,uint16_tclkoffset,uint8_trswitch,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.
Quoted 8 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users