2005-02-08 14:33:03

by martin f krafft

[permalink] [raw]
Subject: [Bluez-users] connection timeout after interrupted software

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.

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


Attachments:
(No filename) (889.00 B)
signature.asc (189.00 B)
Digital signature
Download all attachments

2005-02-09 14:32:51

by martin f krafft

[permalink] [raw]
Subject: Re: [Bluez-users] connection timeout after interrupted software

also sprach Marcel Holtmann <[email protected]> [2005.02.09.0727 +0100]:
> 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.

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

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

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


Attachments:
(No filename) (0.00 B)
signature.asc (189.00 B)
Digital signature
Download all attachments

2005-02-09 06:27:26

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] connection timeout after interrupted software

Hi Martin,

> 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]:
> > the shouldn't be any problems, but anyway what kernel version is this
>
> 2.6.10-1-686 (Debian)
>
> > 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)
>
> > 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

2005-02-09 01:48:31

by martin f krafft

[permalink] [raw]
Subject: Re: [Bluez-users] connection timeout after interrupted software

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]:
> the shouldn't be any problems, but anyway what kernel version is this

2.6.10-1-686 (Debian)

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

> Are there any other information in dmesg or the logfiles?

no, nothing there...

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


Attachments:
(No filename) (1.36 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments

2005-02-08 16:36:30

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] connection timeout after interrupted software

Hi Martin,

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

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