CrEaToRe
17.08.06, 15:28
Hallo ihr Lieben,
wie ich im Titel schon beschrieben habe, will ich mein Nokia 6280 in Linux per Bluetooth koppeln und anschließend mit KMobiletools verwalten.
Problem:
Bei der Kopplung wird am PC nicht die Pin abgefragt, sonder gleich Verbindung abgebrochen!
Habe unten mal mein Vorgehen da gestellt. Wenn einer meinen Fehler entdeckt, oder mir anders Helfen kann wäre ich sehr dankbar!
grüße
Sebastian Alias CrEaToRe
Vorgehen:
Benuztes System: Kubuntu 6.06.1
Handy: Nokia 6280
1. abänderung der /etc/bluetooth/hcid.conf zu:
#
# 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;
# PIN helper
pin_helper /etc/bluetoooth/pin;
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ(%d)";
# Local device class
class 0c100100;
# 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;
# Authentication and Encryption (Security Mode 3)
#auth enable;
#encrypt enable;
}
options {
autoinit yes;
security user;
pairing multi;
pin_helper /etc/bluetoooth/pin;
}
device {
name "%h-%d";
class 0c100100;
iscan enable;
pscan enable;
lm accept;
lp rswitch,hold,sniff,park;}
2. /etc/bluetooth/pin erstellen:
#!/bin/sh
echo "PIN:1234"
3. Konsole Eingabe:
hcitool scan
Scanning ...
00:17:4B:60:5C:84 Seppel
3. Konsole Eingabe:
rfcomm bind 1 00:17:4B:60:5C:84 1
3. Konsole Eingabe:
echo "atz" > /dev/rfcomm1
6. Pin 1234 am Handy eingeben:
root@xxx-desktop:/etc/bluetooth# echo "atz" > /dev/rfcomm1
-su: /dev/rfcomm1: Connection refused
weiter komme ich leider nicht! Was mach ich falsch?
grüße nochmal
Sebastian
wie ich im Titel schon beschrieben habe, will ich mein Nokia 6280 in Linux per Bluetooth koppeln und anschließend mit KMobiletools verwalten.
Problem:
Bei der Kopplung wird am PC nicht die Pin abgefragt, sonder gleich Verbindung abgebrochen!
Habe unten mal mein Vorgehen da gestellt. Wenn einer meinen Fehler entdeckt, oder mir anders Helfen kann wäre ich sehr dankbar!
grüße
Sebastian Alias CrEaToRe
Vorgehen:
Benuztes System: Kubuntu 6.06.1
Handy: Nokia 6280
1. abänderung der /etc/bluetooth/hcid.conf zu:
#
# 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;
# PIN helper
pin_helper /etc/bluetoooth/pin;
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ(%d)";
# Local device class
class 0c100100;
# 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;
# Authentication and Encryption (Security Mode 3)
#auth enable;
#encrypt enable;
}
options {
autoinit yes;
security user;
pairing multi;
pin_helper /etc/bluetoooth/pin;
}
device {
name "%h-%d";
class 0c100100;
iscan enable;
pscan enable;
lm accept;
lp rswitch,hold,sniff,park;}
2. /etc/bluetooth/pin erstellen:
#!/bin/sh
echo "PIN:1234"
3. Konsole Eingabe:
hcitool scan
Scanning ...
00:17:4B:60:5C:84 Seppel
3. Konsole Eingabe:
rfcomm bind 1 00:17:4B:60:5C:84 1
3. Konsole Eingabe:
echo "atz" > /dev/rfcomm1
6. Pin 1234 am Handy eingeben:
root@xxx-desktop:/etc/bluetooth# echo "atz" > /dev/rfcomm1
-su: /dev/rfcomm1: Connection refused
weiter komme ich leider nicht! Was mach ich falsch?
grüße nochmal
Sebastian