You are not logged in.

#1 2008-11-09 06:25:46

wmccann
Member
Registered: 2008-04-06
Posts: 8

apple keyboard pairing help

I've been working at this for some time, but I can't figure out what's going on.

My hcid.conf.

#
# HCI daemon configuration file.
#

# HCId options
options {
    # Automatically initialize new devices
    autoinit yes;

    # Security Manager mode
    #   none - Security manager disabled
    #   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;

    # Default PIN code for incoming connections
    passkey "1234";
}

# Default settings for HCI devices
device {
    # Local device name
    #   %d - device id
    #   %h - host name
    name "BlueZ (%d)";

    # Local device class
    class 0x000100;

    # Default packet type
    #pkt_type DH1,DM1,HV1;

    # Inquiry and Page scan
    iscan enable; pscan enable;

    # Default link mode
    #   none   - no specific policy 
    #   accept - always accept incoming connections
    #   master - become master on incoming connections,
    #            deny role switch on outgoing connections
    lm accept;

    # Default link policy
    #   none    - no specific policy
    #   rswitch - allow role switch
    #   hold    - allow hold mode
    #   sniff   - allow sniff mode
    #   park    - allow park mode
    lp rswitch,hold,sniff,park;
}

device 00:0A:95:49:EE:D9 {
name "willâs keyboard";
auth enable;
encrypt enable;
}

It detects it.

[will@myhost ~]$ sudo hcitool scan
Scanning ...
        00:0A:95:49:EE:D9       willâs keyboard

My /etc/conf.d/bluetooth configuraton file

# Bluetooth services (allowed values are "true" and "false")

# Run the hcid daemon (default: true)
DAEMON_ENABLE="true"

# Run hid2hci (default: false)
HID2HCI_ENABLE="false"

# Run the sdp daemon (default: false)
# If this is disabled, hcid's internal sdp daemon will be used
#SDPD_ENABLE="false"

# Run the bluetooth HID daemon (default: false)
#HIDD_ENABLE="false"
#HCID_ENABLE="true"

# Activate rfcomm ports (default: false)
#RFCOMM_ENABLE="false"

# Run bluetooth dial-up networking daemon (default: false)
#DUND_ENABLE="false"

# Run bluetooth PAN daemon (default: false)?
#PAND_ENABLE="false"

# hcid configuration file (default: /etc/bluetooth/hcid.conf)
#DAEMON_CONFIG="/etc/bluetooth/hcid.conf"

# rfcomm configuration file (default: /etc/bluetooth/rfcomm.conf)
#RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

# Options for hidd, dund and pand (default: none)
#DUND_OPTIONS=""
HIDD_OPTIONS="--connect 00:0A:95:49:EE:D9"
#PAND_OPTIONS=""/conf.d/bluetooth

Then I try a sudo hidd --search and get:

[will@myhost ~]$ sudo hidd --search
Searching ...
        Connecting to device 00:0A:95:49:EE:D9
Can't get device information: Invalid exchange

After the Connecting... line shows up I try to input some pass key into the wireless keyboard (i.e. 1234) and from what I read there should be a screen popping up to query for the same numbers on the computer. I don't get any screen popping up. If I then keep pressing enter on the wireless keyboard I eventually get the Invalid exchange line. Not sure what this means... Any ideas?

Thanks

Offline

#2 2008-12-22 14:09:48

tim
Member
From: Sweden
Registered: 2006-10-29
Posts: 98

Re: apple keyboard pairing help

Not knowing what your pinhelper application is I'd guess that you need to change

security user;

to

security auto;

and then you need to type (on your wireless keyboard after the connect command) the pin you have in hcid.conf which in your case is 1234

Offline

Board footer

Powered by FluxBB