public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Adrian van Dongen" <adrianvandongen@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] problems with bluetooth and pairing (Samsung E900 and MDA Vario )
Date: Thu, 12 Jul 2007 07:46:06 +0200	[thread overview]
Message-ID: <cfd8c35a0707112246m4dd4cd44ke18b4620a7f92572@mail.gmail.com> (raw)
In-Reply-To: <cfd8c35a0707112244j1f2d9f4ex6718237d700ce480@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 4873 bytes --]

Hi,

I am having some problems with pairing my mobile devices. I saw the
btproximity monitor on the gentoo wiki and here on the ubuntu forums and i
thought it would be nice to install it on my machine to but i run into some
problems.

URL: http://ubuntuforums.org/showthread.php?t=486735&highlight=proximity

First of all let me explain what i am using:

* Ubuntu Fiesty Fawn
* Samsung SGH-E900
* T-mobile MDA Vario
* Bluetooth USB dongle

The script didn't work so i tried the steps by hand to see where things go
wrong. Didn't take long to see that there was no connection being made. I
first tried it on the samsung but didn't work at all. Then i tried it with
the MDA (which gives some responce) but this would also not work.

So let me explain what i did:

First i checked if my bluetooth was up and running:


avdongen@Masahiro:~$ hciconfig
  hci0:   Type: USB
        BD Address: 00:10:60:A9:10:28 ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:2841 acl:34 sco:0 events:105 errors:0
        TX bytes:1226 acl:33 sco:0 commands:40 errors:0

When i try to search for my devices via hidd i get nothing..

avdongen@Masahiro:~$ sudo hidd --search
Password:
Searching ...

but when i search with the hcitool i find both my phones

avdongen@Masahiro:~$ sudo hcitool scan
Scanning ...
        00:12:37:A7:C8:93       Avdongen
        00:17:D5:59:F0:16       Avdongen2

So my first guess is, there is something wrong when i use hidd so i continue
to use hcitool. So next i try to connect to the one of the devices:

avdongen@Masahiro :~$ sudo hcitool cc 00:17:D5:59:F0:16
avdongen@Masahiro:~$ sudo hcitool cc 00:12:37:A7:C8:93

nothing.. no error, no warning on the either of the phones... so i try hidd
to connect:

avdongen@Masahiro:~$ sudo hidd --connect 00:17:D5:59:F0:16
avdongen@Masahiro:~$ sudo hidd --connect 00:12:37:A7:C8:93
Can't connect: Connection reset by peer (104)

Finally some reaction, the Samsung doesn't do anything but the MDA asks me
if my machine is allowed to connect and then asks me for a pin. I enter 1234
(this also the default in in my bluetooth config) but then i get the
connection reset by peer error.

I can ping both my phones l2ping:

root@Masahiro:/home/avdongen# l2ping 00:12:37:A7:C8:93
Ping: 00:12:37:A7:C8:93 from 00:10:60:A9:10:28 (data size 44) ...
94 bytes from 00:12:37:A7:C8:93 id 0 time 31.71ms
94 bytes from 00:12:37:A7:C8:93 id 1 time 39.77ms
94 bytes from 00:12:37:A7:C8:93 id 2 time 34.70ms
94 bytes from 00:12:37:A7:C8:93 id 3 time 30.63ms
4 sent, 4 received, 0% loss

root@Masahiro:/home/avdongen# l2ping 00:17:D5:59:F0:16
Ping: 00:17:D5:59:F0:16 from 00:10:60:A9:10:28 (data size 44) ...
4 bytes from 00:17:D5:59:F0:16 id 0 time 44.92ms
4 bytes from 00:17:D5:59:F0:16 id 1 time 43.80ms
4 bytes from 00:17:D5:59:F0:16 id 2 time 37.71ms
4 bytes from 00:17:D5:59:F0:16 id 3 time 27.64ms
4 sent, 4 received, 0% loss

Some searching here on ubuntu forums and google suggest that this has
something todo with the error:

avdongen@Masahiro:~$ hcid -n
hcid[5592]: Bluetooth HCI daemon
hcid[5592]: Could not become the primary owner of org.bluez
hcid[5592]: Unable to get on D-Bus

but there is no real solution to be found anywhere as far as i can see.

Does anyone have a clue whats wrong and how to fix this ?

Regards,

Adrian.

PS this is my hcid.conf

/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-%d";

        # Local device class
        class 0x3e0100;

        # Default packet type
        #pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; pscan enable;
        discovto 0;

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

[-- Attachment #1.2: Type: text/html, Size: 7525 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

       reply	other threads:[~2007-07-12  5:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cfd8c35a0707112244j1f2d9f4ex6718237d700ce480@mail.gmail.com>
2007-07-12  5:46 ` Adrian van Dongen [this message]
2007-07-12  9:51   ` [Bluez-users] problems with bluetooth and pairing (Samsung E900 and MDA Vario ) Timothy Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cfd8c35a0707112246m4dd4cd44ke18b4620a7f92572@mail.gmail.com \
    --to=adrianvandongen@gmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox