linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephane Travostino <neuromancer@paranoici.org>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Motorola V620 phone and bluetooth PIN pairing
Date: Fri, 10 Feb 2006 01:08:26 +0000 (UTC)	[thread overview]
Message-ID: <loom.20060210T014446-0@post.gmane.org> (raw)

Hello,
I have a Motorola V620 phone which provides Bluetooth support, and a working
Bluetooth USB dongle.
Phone -> PC and PC -> Phone transfers work correctly, but whenever I try to
create a rfcomm connection to the phone, I get a "Connection refused" error
message.
This is how I setup the RFCOMM:

$ sudo rfcomm bind 0 00:15:A8:3B:EA:F0 1
$ sudo rfcomm
rfcomm0: 00:15:A8:3B:EA:F0 channel 1 clean

When I try to do a simple command on /dev/rfcomm0 the command freezes, or 
I get a "connection refused" message.

$ echo AT > /dev/rfcomm0
(After waiting some time, I press Ctrl-C)
bash: /dev/rfcomm0: Interrupted system call

or

$ cat /dev/rfcomm0
cat: /dev/rfcomm0: Connection refused

I tried to do a hcidump and it stucks on the line:

-> HCI Event: Link Key Request (0x17) plen 6

when the command freezes, or

-> HCI Event: Link Key Request (0x17) plen 6
<- HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
-> HCI Event: Command Complete (0x0e) plen 10
-> ACL data: handle 41 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73
<- ACL data: handle 41 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 41 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
-> ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
<- ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
-> 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
-> ACL data: handle 41 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
-> ACL data: handle 41 flags 0x02 dlen 14
    L2CAP(s): Command rej: reason 2 dcid 0x0040 scid 0x0040
      Invalid CID in request
<- HCI Command: Disconnect (0x01|0x0006) plen 3
-> HCI Event: Command Status (0x0f) plen 4
-> HCI Event: Disconn Complete (0x05) plen 4

when the connection gets refused.

The only way to make it working is to remove the detected computer on the phone,
and execute the command (echo, cat, wvdial, whatever) so the phone asks you the
pairing PIN (because once asked, the phone saves it and doesn't ask you anymore,
and no way to change this behaviour).

The strange thing is that if I run wvdial many times, I don't have to do this,
but I can't run multiple times the "echo AT > /dev/rfcomm0" without repairing
the devices.

On Windows I can make it work without any problem.

My configuration is the following:
rfcomm 2.20
bluez-utils 2.20-0ubuntu3
Kernel 2.6.12-10-386
Ubuntu 5.10 Breezy Badger

Thanks, and sorry for my bad English :-)



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2006-02-10  1:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10  1:08 Stephane Travostino [this message]
2006-02-10 14:12 ` [Bluez-devel] Motorola V620 phone and bluetooth PIN pairing Marcel Holtmann

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=loom.20060210T014446-0@post.gmane.org \
    --to=neuromancer@paranoici.org \
    --cc=bluez-devel@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;
as well as URLs for NNTP newsgroup(s).