Landy
10-28-2004, 03:18 PM
Hey guys, this is something thats been outstanding on my list of things to do for some time now.
I've got my bluetooth device working fine, thats ok, I can send things to my phone and then tell my phone to accept them. But I cannot pair the two as it asks for a PIN which I do not have.
I have followed several guides with no joy.
http://www.jeremythompson.uklinux.net/RH9-0/Bluez.html
http://www.unix-ag.uni-kl.de/~leonard/linux-n6600-howto.html
http://www.koeniglich.de/p3nfs/bluetooth.linux
http://www.westmaster.com/zidek/p900/bluetooth/
I've followed what I can from them about setting the PIN to no avail. Has anybody gotten this working?
Heres the contents of my files /etc/bluetooth/hcid.conf, /etc/bluetooth/givepin, /etc/bluetooth/pin
HCID.conf
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk Exp $
#
# 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;
# PIN helper
pin_helper /etc/bluetooth/pin;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ (%d)";
# Local device class
class 0x100;
# 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,master;
#
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 hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
/etc/bluetooth/givepin
##############givepin##########
!/bin/sh
echo "PIN:1234"
################
/etc/bluetooth/pin
PIN:1234
I've got my bluetooth device working fine, thats ok, I can send things to my phone and then tell my phone to accept them. But I cannot pair the two as it asks for a PIN which I do not have.
I have followed several guides with no joy.
http://www.jeremythompson.uklinux.net/RH9-0/Bluez.html
http://www.unix-ag.uni-kl.de/~leonard/linux-n6600-howto.html
http://www.koeniglich.de/p3nfs/bluetooth.linux
http://www.westmaster.com/zidek/p900/bluetooth/
I've followed what I can from them about setting the PIN to no avail. Has anybody gotten this working?
Heres the contents of my files /etc/bluetooth/hcid.conf, /etc/bluetooth/givepin, /etc/bluetooth/pin
HCID.conf
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk Exp $
#
# 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;
# PIN helper
pin_helper /etc/bluetooth/pin;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ (%d)";
# Local device class
class 0x100;
# 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,master;
#
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 hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
/etc/bluetooth/givepin
##############givepin##########
!/bin/sh
echo "PIN:1234"
################
/etc/bluetooth/pin
PIN:1234