Skip to contentSkip to conversation

bluez-utils 2.7 and bthid

Bluez-users Robert Foster 3 participants 6 messages May 10, 2004 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

A word of caution:

bthid does not seem to play nicely with the recently released bluez-utils 2.7. Every time I tried to connect to my MS mouse, it would ask for a pin code. I had to uninstall bluez-{utils|libs} 2.7 and revert back to the 2.6 release before this problem would go away again.

I'm really hoping there was another solution?!?

Rob.

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Mi,

I dont't have this problem - MS Wireless desktop for BT

Michal

Quoted 15 lines · Robert Foster

A word of caution:

bthid does not seem to play nicely with the recently released bluez-utils 2.7. Every time I tried to connect to my MS mouse, it would ask for a pin code. I had to uninstall bluez-{utils|libs} 2.7 and revert back to the 2.6 release before this problem would go away again.

I'm really hoping there was another solution?!?

Rob.

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#2 lore raw
In reply to Robert Foster

Hi Robert,

Quoted 4 lines

bthid does not seem to play nicely with the recently released bluez-utils 2.7. Every time I tried to connect to my MS mouse, it would ask for a pin code. I had to uninstall bluez-{utils|libs} 2.7 and revert back to the 2.6 release before this problem would go away again.

I haven't seen such problem. Do you enabled auth or encrypt in your hcid.conf? Look with hcidump at the connection setup and show it to us.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw

Update: I received the PIN prompt...

This time, before I tried to connect, I pushed the Connect Channel button on the bottom of the mouse:

hcidump:

< HCI Command: Create Connection(0x01|0x0005) plen 13

Quoted 2 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Connect Complete(0x03) plen 11

< HCI Command: Create Connection(0x01|0x0005) plen 13

Quoted 2 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Connect Complete(0x03) plen 11

< HCI Command: Create Connection(0x01|0x0005) plen 13

Quoted 2 lines

HCI Event: Command Status(0x0f) plen 4
HCI Event: Link Key Request(0x17) plen 6

< HCI Command: Link Key Request Negative Reply(0x01|0x000c) plen 6

Quoted 2 lines

HCI Event: Command Complete(0x0e) plen 10
HCI Event: PIN Code Request(0x16) plen 6

< HCI Command: PIN Code Request Negative Reply(0x01|0x000e) plen 6

Quoted 2 lines

HCI Event: Command Complete(0x0e) plen 10
HCI Event: Connect Complete(0x03) plen 11

system log:

May 10 19:27:08 rover hcid[2098]: link_key_request
(sba=00:20:E0:85:06:49, dba=00:50:F2:E5:B5:57)
May 10 19:27:08 rover hcid[2098]: pin_code_request
(sba=00:20:E0:85:06:49, dba=00:50:F2:E5:B5:57)
May 10 19:27:13 rover bthid[3374]: Connection failed: Invalid exchange

(52)

Rob.

Quoted 15 lines · Marcel Holtmann

Hi Robert,

Quoted 4 lines

bthid does not seem to play nicely with the recently released bluez-utils 2.7. Every time I tried to connect to my MS mouse, it would ask for a pin code. I had to uninstall bluez-{utils|libs} 2.7 and revert back to the 2.6 release before this problem would go away again.

I haven't seen such problem. Do you enabled auth or encrypt in your hcid.conf? Look with hcidump at the connection setup and show it to us.

Regards

Marcel

A message that is not in the archive (sent off-list or not yet received): [email protected]

maintainer
#5 lore raw

Hi Robert,

Quoted 11 lines

I've attached a couple of files.

bthid1.txt has the commands I executed to install the libs and utils v. 2.7; the bthid commands i executed, as well as the hcidump and system log entries related to the connection to the mouse.

Interesting to note that I wasn't prompted for a PIN this time, it simply failed.

Note also that this was working perfectly before the reboot, using the old 2.6 libs and utils.

as I said, don't enable auth and encrypt in hcid.conf, because this is security mode 3. Make also sure that only one hcid is running.

Quoted 3 lines

I have also set up a rather simple script - /etc/init.d/bluetooth-hid to automatically connect to the mouse at startup, which gets it's options from a config file in /etc/bluetooth/hid.conf

Why do you need that? The mouse and keyboard reconnects after you've pressed a key. The only thing you have to start is bthid in daemon mode.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw

Okay, cool:) everything working now:)

Quoted 3 lines · Marcel Holtmann

as I said, don't enable auth and encrypt in hcid.conf, because this is security mode 3. Make also sure that only one hcid is running.

disabled these - for some reason I was under the impression that I needed them to connect to my Nokia 6600.. But I guess I was wrong :) this was an overhang from the old laptop.

Quoted 7 lines
Quoted 3 lines

I have also set up a rather simple script - /etc/init.d/bluetooth-hid to automatically connect to the mouse at startup, which gets it's options from a config file in /etc/bluetooth/hid.conf

Why do you need that? The mouse and keyboard reconnects after you've pressed a key. The only thing you have to start is bthid in daemon mode.

Ok, so I don't have to re-connect everytime I boot up? Cool :)

Quoted 3 lines

Regards

Marcel

Thanks Marcel.