#46 timeout not working with usb bluetooth dongle

closed-rejected
nobody
None
5
2009-07-22
2008-08-11
Gabriel Rossetti
No

Hello,

I'm trying to use a usb bluetooth dongle and sometimes for some unkown reason the timeout doesn't work. If I turn off the device and try to connect (open()) i get this error :

Could not open port: [Errno 112] Host is down: '/dev/rfcomm0'

which seems normal, but it takes about 20 seconds and doesn't timeout in 3 seconds like I specified in open().

Thank you,
Gabriel

Discussion

  • Chris Liechti
    Chris Liechti
    2009-07-22

    • status: open --> closed-rejected
     
  • Chris Liechti
    Chris Liechti
    2009-07-22

    the timeout only applies to the read function - not for the initial port opening. the reason for it taking 20 seconds may be that the OS runs a bluetooth search for the deivce, which takes its time.