Skip to contentSkip to conversation

connection timeout after interrupted software

Bluez-users martin f krafft 2 participants 5 messages Feb 8, 2005 – Feb 9, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I use a bluetooth software that establishes connections with my phone via libbluetooth.so.1. Sometimes this software has to be killed. When I do this, it leaves the bluetooth stack in a broken state:

  # hcitool scan
  Scanning ...
  Inquiry failed: Connection timed out

How can I prevent this? What is the best way to rectify the situation? So far, only reloading the hci_usb kernel module (I use a dongle) and reconfiguring hci0 works. Since some of my machines have monolithic kernels, this requires a restart. I'd prefer if there was a different solution.

Thanks for any advice.

Signature · 8 lines
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: [email protected]
 
seminars, n.:
  from "semi" and "arse", hence, any half-assed discussion.
maintainer
#1 lore raw

Hi Martin,

Quoted 9 lines

I use a bluetooth software that establishes connections with my phone via libbluetooth.so.1. Sometimes this software has to be killed. When I do this, it leaves the bluetooth stack in a broken state:

  # hcitool scan
  Scanning ...
  Inquiry failed: Connection timed out
Quoted 5 lines

How can I prevent this? What is the best way to rectify the situation? So far, only reloading the hci_usb kernel module (I use a dongle) and reconfiguring hci0 works. Since some of my machines have monolithic kernels, this requires a restart. I'd prefer if there was a different solution.

the shouldn't be any problems, but anyway what kernel version is this and what does hciconfig show after you discover this problem. Are there any other information in dmesg or the logfiles?

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

first of all, sorry for sending an incomplete report. anyway, i don't think i can provide more information this time...

also sprach Marcel Holtmann <[email protected]> [2005.02.08.1736 +0100]:

Quoted 1 line

the shouldn't be any problems, but anyway what kernel version is this

2.6.10-1-686 (Debian)

Quoted 1 line

and what does hciconfig show after you discover this problem.

looks good, the same as before

hci0: Type: USB
BD Address: 08:00:17:1D:32:4D ACL MTU: 339:4 SCO MTU: 60:9
UP RUNNING PSCAN ISCAN
RX bytes:7621 acl:167 sco:0 events:119 errors:0
TX bytes:2823 acl:118 sco:0 commands:30 errors:0
Features: 0xff 0x3b 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'cirrus'
Class: 0xf20100
Service Classes: Networking, Object Transfer, Audio, Telephony, Information Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x180 LMP Ver: 1.1 (0x1) LMP Subver: 0x180
Manufacturer: RTX Telecom A/S (21)

Quoted 1 line

Are there any other information in dmesg or the logfiles?

no, nothing there...

Signature · 7 lines
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: [email protected]
 
micro$oft windoze - the best solitaire game you can buy.
maintainer
#3 lore raw

Hi Martin,

Quoted 28 lines

first of all, sorry for sending an incomplete report. anyway, i don't think i can provide more information this time...

also sprach Marcel Holtmann <[email protected]> [2005.02.08.1736 +0100]:

Quoted 1 line

the shouldn't be any problems, but anyway what kernel version is this

2.6.10-1-686 (Debian)

Quoted 1 line

and what does hciconfig show after you discover this problem.

looks good, the same as before

hci0: Type: USB
BD Address: 08:00:17:1D:32:4D ACL MTU: 339:4 SCO MTU: 60:9
UP RUNNING PSCAN ISCAN
RX bytes:7621 acl:167 sco:0 events:119 errors:0
TX bytes:2823 acl:118 sco:0 commands:30 errors:0
Features: 0xff 0x3b 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'cirrus'
Class: 0xf20100
Service Classes: Networking, Object Transfer, Audio, Telephony, Information Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x180 LMP Ver: 1.1 (0x1) LMP Subver: 0x180
Manufacturer: RTX Telecom A/S (21)

Quoted 3 lines
Quoted 1 line

Are there any other information in dmesg or the logfiles?

no, nothing there...

make sure that you activate the rswitch for the link policy. You can also try to load hci_usb with reset=1 if available.

What kind of dongle is this? Is it already in my list?

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

also sprach Marcel Holtmann <[email protected]> [2005.02.09.0727 +0100]:

Quoted 1 line

make sure that you activate the rswitch for the link policy.

Yeah, that fixed it. I guess I will now go and read up on why that would make a difference.

Quoted 1 line

You can also try to load hci_usb with reset=1 if available.

Not needed anymore, and I prefer if I don't have to set it explicitly.

Quoted 1 line

What kind of dongle is this? Is it already in my list?

Probably not: it's an El Cheapo dongle from around the corner, an "Abo UB20". lsusb -vvv output attached.

It works just fine...

Signature · 14 lines
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: [email protected]
 
this product is under strict quality contril with perfect packing and
quality when leving the factory.please keep away from damp.high
temperature or sun expose.If found any detectives when purchasing.
please return the productby airmail to our administration section and
inform the time, place.and store of this purchase for our
improvement.We shall give you a satisfactory reply.Thanks for your
patronage and welcome your comments.
                                             -- http://www.engrish.com