Skip to contentSkip to conversation

hcid.conf multiple dongles

Bluez-users dave sailer 2 participants 4 messages Nov 22, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I have a Microsoft bluetooth keyboard and mouse that has worked well for some time. I bought new bluetooth dongle (Kensington) in hopes of getting my palm to connect via bluetooth (the Microsoft dongle didn't work for this). With this arrangement, how do I control which dongle the keyboard & mouse connect to? (it seems more reliable with Microsoft to Microsoft).

Also, the results of "hci tool scan" are confusing me a bit. For example, I get...

myth1 ~ # hcitool scan
Scanning ...

        00:50:F2:7E:11:F1       Myth1 Kensington dongle4

firstly, this bdadr is the microsoft dongle. Does this normally return a dongle address? At one point I'm sure it was returning the palm pilot address. Secondly, this name "Myth1 Kensington dongle4" is old. I used to have that in hcid.conf, but changed it and even rebooted the box. Just for history, at one point I had an hcid.conf file with only one device section (no device id's). Now I have the following ... (wasn't sure about the device syntax, but this seems to work. btw, it would be nice if the hcid.conf man page was more clear about the syntax on how to specify multiple devices)

options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled (palm fails completely with this)
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;

# PIN helper
pin_helper /etc/bluetooth/pin-helper;
#pin_helper /usr/bin/bluepin;

# D-Bus PIN helper
#dbus_pin_helper;
}

# Default settings for HCI devices

device 00:16:38:BE:F1:21 {
        name "Myth1 Kensington dongle1";
    class 0x020100;
    iscan enable; pscan enable;
    lm accept;
    lp rswitch,hold,sniff,park;
}
device 00:50:F2:7E:11:F1 {
        name "Myth1 Microsoft dongle2";
    class 0x020100;
    iscan enable; pscan enable;
    lm accept;
    lp rswitch,hold,sniff,park;
}

thanks

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Dave,

Quoted 6 lines

I have a Microsoft bluetooth keyboard and mouse that has worked well for some time. I bought new bluetooth dongle (Kensington) in hopes of getting my palm to connect via bluetooth (the Microsoft dongle didn't work for this). With this arrangement, how do I control which dongle the keyboard & mouse connect to? (it seems more reliable with Microsoft to Microsoft).

the mouse and keyboard know the address of the last user and will reconnect to that dongle.

Quoted 8 lines

Also, the results of "hci tool scan" are confusing me a bit. For example, I get...

myth1 ~ # hcitool scan
Scanning ...

        00:50:F2:7E:11:F1       Myth1 Kensington dongle4
Quoted 9 lines

firstly, this bdadr is the microsoft dongle. Does this normally return a dongle address? At one point I'm sure it was returning the palm pilot address. Secondly, this name "Myth1 Kensington dongle4" is old. I used to have that in hcid.conf, but changed it and even rebooted the box. Just for history, at one point I had an hcid.conf file with only one device section (no device id's). Now I have the following ... (wasn't sure about the device syntax, but this seems to work. btw, it would be nice if the hcid.conf man page was more clear about the syntax on how to specify multiple devices)

Feel free to send in a patch for the manual page. Nowadays you can do persistent settings of the class and device name via D-Bus. It is much easier and you don't have to edit any config files.

Regards

Marcel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

thanks for the info. Can you elaborate a bit? Regarding what the kb/mouse connect to, does that mean I'll reconnect to the last dongle that had any activity? Maybe this is a moot point if I can take advantage of the D-bus persistent connection. Regarding that, I googled (and searched here) for "persistent dbus bluetooth connection" and didn't come up with much. Can you point me at some documentation?

thanks again

----- Original Message -----
From: "Marcel Holtmann" <[email protected]>
To: "BlueZ users" <[email protected]>
Sent: Wednesday, November 22, 2006 1:59 AM
Subject: Re: [Bluez-users] hcid.conf multiple dongles

Quoted 40 lines

Hi Dave,

Quoted 6 lines

I have a Microsoft bluetooth keyboard and mouse that has worked well for some time. I bought new bluetooth dongle (Kensington) in hopes of getting my palm to connect via bluetooth (the Microsoft dongle didn't work for this). With this arrangement, how do I control which dongle the keyboard & mouse connect to? (it seems more reliable with Microsoft to Microsoft).

the mouse and keyboard know the address of the last user and will reconnect to that dongle.

Quoted 8 lines

Also, the results of "hci tool scan" are confusing me a bit. For example, I get...

myth1 ~ # hcitool scan
Scanning ...

        00:50:F2:7E:11:F1       Myth1 Kensington dongle4
Quoted 9 lines

firstly, this bdadr is the microsoft dongle. Does this normally return a dongle address? At one point I'm sure it was returning the palm pilot address. Secondly, this name "Myth1 Kensington dongle4" is old. I used to have that in hcid.conf, but changed it and even rebooted the box. Just for history, at one point I had an hcid.conf file with only one device section (no device id's). Now I have the following ... (wasn't sure about the device syntax, but this seems to work. btw, it would be nice if the hcid.conf man page was more clear about the syntax on how to specify multiple devices)

Feel free to send in a patch for the manual page. Nowadays you can do persistent settings of the class and device name via D-Bus. It is much easier and you don't have to edit any config files.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw
Quoted 57 lines · Dave sailer

----- Original Message -----
From: "Marcel Holtmann" <[email protected]>
To: "BlueZ users" <[email protected]>
Sent: Wednesday, November 22, 2006 1:59 AM
Subject: Re: [Bluez-users] hcid.conf multiple dongles

Quoted 45 lines

Hi Dave,

Quoted 7 lines

I have a Microsoft bluetooth keyboard and mouse that has worked well for some time. I bought new bluetooth dongle (Kensington) in hopes of getting my palm to connect via bluetooth (the Microsoft dongle didn't work for this). With this arrangement, how do I control which dongle the keyboard & mouse connect to? (it seems more reliable with Microsoft to Microsoft).

the mouse and keyboard know the address of the last user and will reconnect to that dongle.

Quoted 8 lines

Also, the results of "hci tool scan" are confusing me a bit. For example, I get...

myth1 ~ # hcitool scan
Scanning ...

        00:50:F2:7E:11:F1       Myth1 Kensington dongle4
Quoted 10 lines

firstly, this bdadr is the microsoft dongle. Does this normally return a dongle address? At one point I'm sure it was returning the palm pilot address. Secondly, this name "Myth1 Kensington dongle4" is old. I used to have that in hcid.conf, but changed it and even rebooted the box. Just for history, at one point I had an hcid.conf file with only one device section (no device id's). Now I have the following ... (wasn't sure about the device syntax, but this seems to work. btw, it would be nice if the hcid.conf man page was more clear about the syntax on how to specify multiple devices)

Feel free to send in a patch for the manual page. Nowadays you can do persistent settings of the class and device name via D-Bus. It is much easier and you don't have to edit any config files.

Regards

Marcel

-------------------------------------------------------------------------

sorry for the previous top post. ...

any hint here at all? I can't seem to track any more details down on this. Looked around at bluez.org and freedesk.org and google - couldnt' find much.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users