Newsgroup: it.comp.os.linux.iniziare
Titolo: bluetooth, problema di pairing

Non riesco a fare il pairing con il mio laptop e il mio Nokia N80 (ho
provato anche telfoni di altre marche, stesso problema).
Sono su Debian Etch e il laptop è un nuovo Acer TM8204.
Vi posto qualcosa:
tm8204:~# hcitool inq
Inquiring ...
    00:12:D1:B2:6D:3D    clock offset: 0x7274    class: 0x50020c
tm8204:~# hcitool cc 00:12:D1:B2:6D:3D
tm8204:~# hcitool auth 00:12:D1:B2:6D:3D
HCI authentication request failed: Input/output error
tm8204:~# sdptool search DUN
Inquiring ...
Searching for DUN on 00:12:D1:B2:6D:3D ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10013
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100
tm8204:~# rfcomm bind rfcomm0 00:12:D1:B2:6D:3D 2
tm8204:~# rfcomm
rfcomm0: 00:12:D1:B2:6D:3D channel 2 clean
tm8204:~# rfcomm connect /dev/rfcomm0
Can't connect RFCOMM socket: Connection refused
tm8204:~# cat /etc/bluetooth/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 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 "1234";
}
# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "%h";
        # Local device class
        class 0x3e0100;
        # 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;
}
Durante i tentativi di connessione il telefono mi chiede il PIN e io
inserisco 1234 come indicato nel file hdic.conf, ma quando do l'OK mi
torna sempre l'errore: Can't connect RFCOMM socket: Connection refused
Ho cercato a lungo su google e provato tutte le soluzioni proposte senza
successo!
Qualche suggerimento?
Grazie!
Heruan

Se può esserti utile questo è il mio 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;
        # PIN helper
        # if you want a interactiv query of your pin use /usr/bin/bluepin
        # /bin/bluepincat is using the pin in the /etc/bluetooth/pin file
        # pin_helper /usr/bin/bluepin;
        pin_helper /bin/bluepincat;
        # D-Bus PIN helper
        #dbus_pin_helper;
}
# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "BlueZ %h (%d)";
        # Local device class
        # e.g.
        #  0xsss100 = Computer
        #  0xsss104 = Computer Desktop
        #  0xsss108 = Computer Server
        #  0xsss10c = Computer Laptop
        # The 'sss' above defines the service-class (not quite, only the
        # first 11 bits, the next 11 define the device-class, than 2 format bits.)
        # See 
https://www.bluetooth.org/foundry/assignnumb/document/baseband
        # for more information.
        # 0x100bbb stands for "Object Transfer  (v-Inbox, v-Folder, ...)"
        # 0x020bbb stands for "Networking (LAN, Ad hoc, ...)"
        class 0x100000;
        # Default packet type
        #pkt_type DH1,DM1,HV1;
        # Inquiry and Page scan
        # valid parameters: enable | disable
        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 disable;
        encrypt disable;
}

 Se puň esserti utile questo č il mio hcid.conf:
[CUT]
Ti ringrazio, purtroppo mi dŕ lo stesso problema. Non č un problema
hardware perché con lo stesso pc in Windows non ho problemi...
E poi riesco a vedere i servizi sul telefono, č solo il pairing che
fallisce!

 fallisce!
sul pacchetto bluez-utils di debian si stanno avendo problemi come
quello che segnali. vedi in proposito la pagina delle segnalazioni dei
bug:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=bluez-utils
ciao,
:-) Ataualpa
-- 
Un idealista è uno che, notando che una rosa odora meglio d'un cavolo,
ne conclude che se ne possa cavare una minestra migliore. [H.L. Mencken]
*-| Marche: l'Italia in 1 regione |-| 
http://ataualpa.altervista.org
 |-*