All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Re: Trouble pairing with new phone...
Date: Thu, 10 Feb 2005 21:08:53 +0100	[thread overview]
Message-ID: <1108066133.15974.130.camel@pegasus> (raw)
In-Reply-To: <Pine.GSO.4.58.0502101500220.13274@gaia3.cc.gatech.edu>

Hi Jay,

> hciconfig -a says:
> hci0:   Type: UART
>         BD Address: 00:10:60:AA:FB:C9 ACL MTU: 192:8  SCO MTU: 64:8
>         UP RUNNING PSCAN ISCAN AUTH ENCRYPT
>         RX bytes:357 acl:0 sco:0 events:18 errors:0
>         TX bytes:849 acl:0 sco:0 commands:17 errors:0
>         Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
>         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
>         Link policy: RSWITCH HOLD SNIFF PARK
>         Link mode: SLAVE ACCEPT
>         Name: 'BlueZ (0)'
>         Class: 0x000100
>         Service Classes: Unspecified
>         Device Class: Computer, Uncategorized
>         HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP
> Subver: 0x20d
>         Manufacturer: Cambridge Silicon Radio (10)
> 
> 
> This is a standard PCMCIA Zoom bluetooth card, worked with a Sony T610
> phone before, still works with the palm T.

you set yourself into security mode 3 by using auth and encrypt. Are you
sure that you know what you are doing?

> When I do hcitool info 00:0A:D9:1D:E6:B2 I get the following error:
> Requesting information ...
> Can't create connection: Input/output error
> 
> The hcidump -x output of the above is:
> HCIDump - HCI packet analyzer ver 1.12
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Create Connection (0x01|0x0005) plen 13
>   B2 E6 1D D9 0A 00 18 CC 02 00 00 00 01
> > HCI Event: Command Status (0x0f) plen 4
>   00 01 05 04
> > HCI Event: Link Key Request (0x17) plen 6
>   B2 E6 1D D9 0A 00
> < HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6
>   B2 E6 1D D9 0A 00
> > HCI Event: Command Complete (0x0e) plen 10
>   01 0C 04 00 B2 E6 1D D9 0A 00
> > HCI Event: PIN Code Request (0x16) plen 6
>   B2 E6 1D D9 0A 00
> < HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
>   B2 E6 1D D9 0A 00
> > HCI Event: Command Complete (0x0e) plen 10
>   01 0E 04 00 B2 E6 1D D9 0A 00
> > HCI Event: Connect Complete (0x03) plen 11
>   06 29 00 B2 E6 1D D9 0A 00 01 00
> 
> So it looks like because the phone isn't paired with BlueZ, it won't
> give the information hictool is requesting...

The PIN helper can't provide a PIN as it seems. Fix this.

> As to the "role switch". I'm not doing anything explicitly. hcid.conf has the
> following entry which may be involved:
>   # 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,master;
>         #
>         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 hold,sniff;
>         #
>         lp rswitch,hold,sniff,park;
> 
> 
> (If I use lm accept,master instead of the lm accept that is in the file,
> the phone still does not pair...I have also tried using lp hold,snif
> instead of the lp rswitch,hold,sniff,park same result, phone does not
> pair.)

Even an application with L2CAP_LM_MASTER set can force the role switch
at connection creation.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-02-10 20:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 20:01 [Bluez-users] Re: Trouble pairing with new phone Jay W. Summet
2005-02-10 20:08 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-02-11 15:42 Jay W. Summet
2005-02-11 19:09 ` Marcel Holtmann
2005-02-09 15:54 Jay W. Summet
2005-02-09 16:18 ` Marcel Holtmann
2005-02-08 23:27 [Bluez-users] " Jay W. Summet
2005-02-08 23:32 ` [Bluez-users] " Jay W. Summet

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=1108066133.15974.130.camel@pegasus \
    --to=marcel@holtmann.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.