2004-09-15 11:40:02

by Paul Hedderly

[permalink] [raw]
Subject: [Bluez-users] Cheap BT Mouse - reconnect problem

I also just got a Bluetooth mouse.

I'm using the hidp module (2.4.27-mh1) and Debian bluez-XXX 2.9-3.

The mouse pairs and works great. Until... the time out or a need to
re-connect from distance separation/reboot etc.

It originally paired as:
New HID device 00:04:61:81:77:80 (CSR HIDEngine Three Button Mouse)

Pressing a button on the mouse gives me another pin prompt.. but no
mouse. The only way to reconnect is to repair (there is
a button on the bottom side of the mouse.) Sometimes I've had to rm
/etc/bluetooth/link_key. (Is there a way to remove individual keys from
that file?)

So on an attempted re-connect (press a button on the mouse) I get
(hcidump and logs combined):

> HCI Event: Connect Request (0x04) plen 10
80 77 81 61 04 00 80 25 00 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
80 77 81 61 04 00 01
> HCI Event: Command Status (0x0f) plen 4
00 04 09 04
> HCI Event: Link Key Request (0x17) plen 6
80 77 81 61 04 00
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
80 77 81 61 04 00
> HCI Event: Command Complete (0x0e) plen 10
04 0C 04 00 80 77 81 61 04 00
> HCI Event: PIN Code Request (0x16) plen 6
80 77 81 61 04 00
> HCI Event: Link Key Request (0x17) plen 6
80 77 81 61 04 00
< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
80 77 81 61 04 00
> HCI Event: Command Complete (0x0e) plen 10
04 0C 04 00 80 77 81 61 04 00
> HCI Event: Connect Complete (0x03) plen 11
06 01 00 80 77 81 61 04 00 01 01
Sep 15 12:26:19 weeblu hcid[2929]: link_key_request (sba=00:E0:03:25:68:98, dba=00:04:61:81:77:80)
Sep 15 12:26:19 weeblu hcid[2929]: pin_code_request (sba=00:E0:03:25:68:98, dba=00:04:61:81:77:80)
Sep 15 12:26:19 weeblu hcid[2929]: link_key_request (sba=00:E0:03:25:68:98, dba=00:04:61:81:77:80)
Sep 15 12:26:19 weeblu hcid[2929]: link_key_request (sba=00:E0:03:25:68:98, dba=00:04:61:81:77:80)
Sep 15 12:26:19 weeblu hcid[2929]: pin_code_request (sba=00:E0:03:25:68:98, dba=00:04:61:81:77:80)
Sep 15 12:26:19 weeblu hcid[2929]: link_key_request (sba=00:E0:03:25:68:98, dba=00:04:61:81:77:80)
< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
80 77 81 61 04 00 04 31 32 33 34 00 00 00 00 00 00 00 00 00
00 00 00
> HCI Event: Command Complete (0x0e) plen 10
04 0D 04 02 80 77 81 61 04 00

Trying a to force a reconnect from the computer gives:

weeblu:/tmp/bluez-utils-2.10/hidd# hidd -c 00:04:61:81:77:80
Can't create HID control channel: Host is down
weeblu:/tmp/bluez-utils-2.10/hidd# hidd -c 00:04:61:81:77:80
Can't create HID control channel: Host is down

(Even making sure the mouse is on by pressing a button regularly)
hcidump -x showed:

< HCI Command: Create Connection (0x01|0x0005) plen 13
80 77 81 61 04 00 18 CC 02 00 00 00 00
> HCI Event: Command Status (0x0f) plen 4
00 04 05 04
> HCI Event: Connect Complete (0x03) plen 11
04 01 00 80 77 81 61 04 00 01 01
< HCI Command: Create Connection (0x01|0x0005) plen 13
80 77 81 61 04 00 18 CC 02 00 00 00 00
> HCI Event: Command Status (0x0f) plen 4
00 04 05 04
> HCI Event: Connect Complete (0x03) plen 11
04 01 00 80 77 81 61 04 00 01 01

I've attached a combined hcidump/sylog of a pair process.

I'm using a pin of 1234 - which is what worked when initially repairing.
But I've tried 0000 and "".

I've had a butchers at hidd/main.c - mostly to see if I can turn on more
debugging, but also to see what changed from 2.9 to 2.10 - and I can see
nothing that should change anything here, I think.

I have no idea what the -t (timeout) option does. Can anyone shed light
on that?

Any help much appreciated!

--
Paul



Attachments:
(No filename) (3.53 kB)
MouseRePair.txt (12.12 kB)
Download all attachments

2004-09-15 12:30:14

by Paul Hedderly

[permalink] [raw]
Subject: Re: [Bluez-users] Cheap BT Mouse - reconnect problem

Ignore me - it's working great now. I misread the Debian
/etc/default/bluez script and had hidd starting with "-i <Mouse-ID>" ...
woops!

--
Paul


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users