Announcement

Collapse
No announcement yet.

connecting bluetooth failed (solved)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    connecting bluetooth failed (solved)

    I cannot get my nokia phone to pair with my computer. The funny thing is that they recognize each other and I can push files to my phone but cannot send files from phone to pc. When i try to connect to the pc I get "connection failed". also when I try to restart bluetooth services in system settings or do :

    sudo /etc/init.d/bluetooth restart

    I get "failed to connect to sdp server". I have looked all over for a solution but have not found one. I installed bluez-firmware 1.2, bluez-hcidump1.41, bluez-libs-3.26, bluez-utils-3.26 all from source. Tried to install obex-data-server-0.2 but it failed due to dependency on dbus-glib-1.

    any ideas??


    solution:
    Upgraded to gutsy now I can pair with the phone and transfer files back and forth
    I tried Enlightenment once, it was pretty cool.

    #2
    Re: connecting bluetooth failed

    I am still having trouble pairing my phone (nokia 6103b) with my computer. I have installed the latest bluez pkgs from source. When I open kbluetoothd file transfer, I can see my phone in the window. I click on the phone and it shows all the services. I then click on OBEX file transfer icon and my asks if I want to connect with bluez (legend). I hit OK on the phone and key in the passkey, and get
    Could not connect to host 00:18:8d:ec:18:39. following is my hcid.conf:

    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 none;

    # 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 "BlueZ (legend)";

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

    here is the last lines of output from hcidump starting from the pin code request.

    HCI Event: PIN Code Request (0x16) plen 6
    < ACL data: handle 42 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
    RFCOMM(s): DISC: cr 1 dlci 20 pf 1 ilen 0 fcs 0x1c
    < HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2
    < ACL data: handle 42 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
    RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
    < ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
    > HCI Event: Command Status (0x0f) plen 4
    > HCI Event: Number of Completed Packets (0x13) plen 5
    > HCI Event: Number of Completed Packets (0x13) plen 5
    > HCI Event: Number of Completed Packets (0x13) plen 5
    > HCI Event: Mode Change (0x14) plen 6
    > ACL data: handle 42 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
    RFCOMM(s): UA: cr 1 dlci 20 pf 1 ilen 0 fcs 0x36
    > ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
    < HCI Command: Disconnect (0x01|0x0006) plen 3
    > HCI Event: Command Status (0x0f) plen 4
    > HCI Event: Disconn Complete (0x05) plen 4


    and finally the dmesg | tail:

    $ dmesg | tail
    [998742.427907] usb 1-4: new full speed USB device using ohci_hcd and address 5
    [998742.671276] usb 1-4: configuration #1 chosen from 1 choice
    [998760.696780] hci_cmd_task: hci0 command tx timeout
    [999338.449929] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [1001965.723836] hci_cmd_task: hci0 command tx timeout
    [1007275.826288] fuse init (API version 7.8)
    [1009632.513960] ip_tables: (C) 2000-2006 Netfilter Core Team
    [1009632.684962] Netfilter messages via NETLINK v0.30.
    [1009632.697725] nf_conntrack version 0.5.0 (8192 buckets, 65536 max)
    [1009638.051217] Inbound IN=eth1 OUT= MAC=00:16:17:14:ff:c5:00:15:05:04:d3:5e:08:00 SRC=128.121.60.235 DST=192.168.0.100 LEN=53 TOS=0x00 PREC=0x00 TTL=53 ID=5465 DF PROTO=TCP SPT=80 DPT=50757 WINDOW=57920 RES=0x00 ACK URGP=0
    I tried Enlightenment once, it was pretty cool.

    Comment


      #3
      Re: connecting bluetooth failed

      Same problem here... can send files to phone but not the other way

      Comment

      Working...
      X