Quote:
Originally Posted by MS3FGX
So you are trying to specify the PIN in the running program, rather than using BlueZ's system-wide PIN settings?
|
Thanks for you reply.
en,yes.Because I find that my USB bluetooth dongle cannot connect to my nokia cellphone without the passcode.
I have searched the Interner.they told me to modify the hcid.conf and pin files.I did,however,I faided to connect my cellphone.
so I want to programm with the passcode.
my hcid.conf settings are like this:
#
# 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 auto;
# 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 "12345";
}
# 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;
}
with those settings,I still cannot connect to my cellphone successfully.