* [Bluez-devel] Motorola V620 phone and bluetooth PIN pairing
@ 2006-02-10 1:08 Stephane Travostino
2006-02-10 14:12 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Stephane Travostino @ 2006-02-10 1:08 UTC (permalink / raw)
To: bluez-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-devel] Motorola V620 phone and bluetooth PIN pairing
2006-02-10 1:08 [Bluez-devel] Motorola V620 phone and bluetooth PIN pairing Stephane Travostino
@ 2006-02-10 14:12 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2006-02-10 14:12 UTC (permalink / raw)
To: bluez-devel
Hi Stephane,
> 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:
run "hcidump -X -V" as root in another terminal window.
Regards
Marcel
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-10 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-10 1:08 [Bluez-devel] Motorola V620 phone and bluetooth PIN pairing Stephane Travostino
2006-02-10 14:12 ` Marcel Holtmann
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).