Re: [Bluez-users] Re: diNovo/MX900 problem with hidd

Patrick W. Healy
2005-07-09T22:22:45Z

Here's a really weird one:

Used hcitool cc to connect to my mediapad, authed it, got a valid link key:
Jul 9 17:09:07 localhost hcid[7758]: link_key_request
(sba=00:10:C6:3B:0B:95, dba=00:07:61:12:60:11)
Jul 9 17:09:07 localhost hcid[7758]: pin_code_request
(sba=00:10:C6:3B:0B:95, dba=00:07:61:12:60:11)
Jul 9 17:09:13 localhost hcid[7758]: link_key_notify
(sba=00:10:C6:3B:0B:95)
Jul 9 17:09:13 localhost hcid[7758]: Saving link key 00:10:C6:3B:0B:95
00:07:61:12:60:11

hciconfig -a shows:
hci0: Type: USB
BD Address: 00:10:C6:3B:0B:95 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN AUTH ENCRYPT
RX bytes:5867 acl:236 sco:0 events:195 errors:0
TX bytes:2150 acl:47 sco:0 commands:47 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'nimitz-0'
Class: 0x3e0100
Service Classes: Networking, Rendering, Capturing
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x235 LMP Ver: 1.1 (0x1) LMP Subver:
0x235
Manufacturer: Cambridge Silicon Radio (10)

hcitool con shows:
Connections:
< ACL 00:07:61:12:60:11 handle 41 state 1 lm MASTER AUTH ENCRYPT

Immediately after all this, hidd --search returns "No devices in range
or visible"... yet my mediapad lets me type WHILE it is searching.
As soon as it's done searching, it quits. After three more searches,
hidd --search returns "Can't create HID control channel: Connection refused"

hidd --show then returns:
00:07:61:12:60:11 HID Boot Device [046d:b3e1] connected [boot-protocol]

and the keyboard works, albeit with horrendous (15 seconds) lag between
my typing and it appearing on screen, along with fairly frequent key
repeats (key acts like I'm just holding it down for 15 seconds or so).

If I push the connect button and then do hidd --search, hidd displays
the following:
Searching ...
Connecting to device 00:07:61:12:60:11
then the pin request window comes up... I put in 1234 on the computer,
then am prompted for a pin by the mediapad. I put in 1234, get the
'connected' light, and see the following in /var/log/daemon.log:
Jul 9 17:18:34 localhost hcid[7758]: link_key_request
(sba=00:10:C6:3B:0B:95, dba=00:07:61:12:60:11)
Jul 9 17:18:34 localhost hcid[7758]: pin_code_request
(sba=00:10:C6:3B:0B:95, dba=00:07:61:12:60:11)
Jul 9 17:18:40 localhost hcid[7758]: link_key_notify
(sba=00:10:C6:3B:0B:95)
Jul 9 17:18:40 localhost hcid[7758]: Replacing link key
00:10:C6:3B:0B:95 00:07:61:12:60:11

after about another 30 seconds or so, hidd --search returns with "HID
create error 110 (Connection timed out)"

Hope this is enough information for someone to assist me on this. It's
getting really frustrating, because using my laptop's internal keyboard
hurts my wrists. If I can't get it working in the next few days I'll
have to go back to windows on this system (and that would make me very sad).

Thanks!

Patrick Healy