Bluetooth - configuration

Nov 03, 2006 13:45

Step 1. Plug-in dongle. Check syslog.

Nov 3 16:31:51 localhost kernel: usb 2-1: new full speed USB device using uhci_hcd and address 3
Nov 3 16:32:01 localhost kernel: usb 2-1: configuration #1 chosen from 1 choice
Nov 3 16:32:01 localhost hcid[3408]: HCI dev 0 registered
Nov 3 16:32:01 localhost hcid[3408]: Register path:/org/bluez/hci0 fallback:0
Nov 3 16:32:01 localhost hcid[3408]: HCI dev 0 up
Nov 3 16:32:01 localhost hcid[3408]: Device hci0 has been added
Nov 3 16:32:01 localhost hcid[3408]: Starting security manager 0
Nov 3 16:32:02 localhost hcid[3408]: Device hci0 has been activated

[root@kaafree~]#hciconfig -a
hci0: Type: USB
BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
UP RUNNING PSCAN
RX bytes:413 acl:0 sco:0 events:19 errors:0
TX bytes:323 acl:0 sco:0 commands:19 errors:0
Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'NC6220 AK'
Class: 0x12010c
Service Classes: Networking, Object Transfer
Device Class: Computer, Laptop
HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver: 0x1fe
Manufacturer: Integrated System Solution Corp. (57)

Step 2. Turn on the phone and enable bluetooth. Phone must be in visible mode.

[root@kaafree ~]# hcitool scan
Scanning ...
00:0F:DE:CB:0C:26       T630 AK
        00:0B:5D:13:63:EB       FS-SSER-WXPR

[root@kaafree ~]# hcitool info 00:0F:DE:CB:0C:26
Requesting information ...
        BD Address:  00:0F:DE:CB:0C:26
        Device Name: T630 AK
        LMP Version: 1.1 (0x1) LMP Subversion: 0x503
        Manufacturer: Ericsson Technology Licensing (0)
        Features: 0x04 0xca 0x31 0x00 0x00 0x00 0x00 0x00

[root@kaafree]# l2ping 00:0F:DE:CB:0C:26
Ping: 00:0F:DE:CB:0C:26 from 11:11:11:11:11:11 (data size 44) ...
0 bytes from 00:0F:DE:CB:0C:26 id 0 time 47.05ms
0 bytes from 00:0F:DE:CB:0C:26 id 1 time 35.99ms
0 bytes from 00:0F:DE:CB:0C:26 id 2 time 36.09ms
3 sent, 3 received, 0% loss

[root@kaafree]# sdptool browse 00:0F:DE:CB:0C:26
Browsing 00:0F:DE:CB:0C:26 ...
Service Name: Dial-up Networking
Service RecHandle: 0x10000
Service Class ID List:
  "Dialup Networking" (0x1103)
  "Generic Networking" (0x1201)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100

Service Name: Voice gateway
Service RecHandle: 0x10002
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: Serial Port 1
Service RecHandle: 0x10003
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4

Service Name: Serial Port 2
Service RecHandle: 0x10004
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 5

Service Name: OBEX Object Push
Service RecHandle: 0x10005
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service Name: IrMC Synchronization
Service RecHandle: 0x10006
Service Class ID List:
  "IrMC Sync" (0x1104)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 11
  "OBEX" (0x0008)
Profile Descriptor List:
  "IrMC Sync" (0x1104)
    Version: 0x0100

Service Name: HF Voice gateway
Service RecHandle: 0x10007
Service Class ID List:
  "Handfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 6
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0100

Service Name: OBEX Basic Imaging
Service RecHandle: 0x1000b
Service Class ID List:
  "Imaging Responder" (0x111b)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 15
  "OBEX" (0x0008)
Profile Descriptor List:
  "Imaging" (0x111a)
    Version: 0x0100

Service Name: OBEX File Transfer
Service RecHandle: 0x1000f
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 7
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

[root@kaafree]#rfcomm connect 0 00:0F:DE:CB:0C:26
Connected /dev/rfcomm0 to 00:0F:DE:CB:0C:26 on channel 1
Press CTRL-C for hangup

Step 3. /etc/bluetooth/rfcomm.conf

rfcomm0 { # Automatically bind the device at startup #bind no; bind yes; # Bluetooth address of the device #device 11:22:33:44:55:66; device 00:0F:DE:CB:0C:26; # RFCOMM channel for the connection channel 1; # Description of the connection #comment "Example Bluetooth device"; comment "T630 AK"; } Step 4. /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 "BlueZ";
}

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

# Local device class
    class 0x120104;

# 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;
}

Step 5. Restart Bluetooth service

fedora

Next post
Up