public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Moritz Bunkus <moritz@bunkus.org>
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] connection to Motorola V525 fails
Date: Fri, 28 May 2004 22:36:35 +0200	[thread overview]
Message-ID: <1085776595.4516.24.camel@pegasus> (raw)
In-Reply-To: <20040528201025.GA7737@bunkus.org>

Hi Moritz,

> > However I don't see any data communication on the RFCOMM channel and
> > that indicates that something is going wrong here. Please checkout the
> > CVS repository obex and try the btobex tool from there.
> 
> Ok, I've downloaded the CVS from openobex and bluez' obex module. At
> first 'btobex push ...' did not work at all because it does not parse
> the channel number and always uses 0. The mobile did turn off the
> screensaver (so it did receive something), but the question 'receive
> obex file transfer' did not appear.
> 
> After modifying main.c and changing the channel number for the push
> request to 9 I've got the same behaviour as before with the obextool
> app. I've attached the binary dump.

forget this, because I overlooked something in the hcidump. You will
never be able to transfer any data from or to your phone, because the
RFCOMM implementation of your phone is buggy.

	< ACL data: handle 0x0029 flags 0x02 dlen 8
	    L2CAP(d): cid 0x40 len 4 [psm 3]
	      RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c 
	> HCI Event: Number of Completed Packets(0x13) plen 5
	  01 29 00 01 00 
	> ACL data: handle 0x0029 flags 0x02 dlen 8
	    L2CAP(d): cid 0x40 len 4 [psm 3]
	      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 

Establishing the control channel. Got an UA. Ok.

	< ACL data: handle 0x0029 flags 0x02 dlen 18
	    L2CAP(d): cid 0x40 len 14 [psm 3]
	      RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
	      dlci 18 frame_type 0 credit_flow 15 pri 7 ack_timer 0 frame_size 1019 max_retrans 0 credits 7
	> HCI Event: Number of Completed Packets(0x13) plen 5
	  01 29 00 01 00 
	> ACL data: handle 0x0029 flags 0x02 dlen 18
	    L2CAP(d): cid 0x40 len 14 [psm 3]
	      RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
	      dlci 18 frame_type 0 credit_flow 14 pri 7 ack_timer 0 frame_size 1019 max_retrans 0 credits 0

Parameter negotiation for channel 0. Ok.

	< ACL data: handle 0x0029 flags 0x02 dlen 8
	    L2CAP(d): cid 0x40 len 4 [psm 3]
	      RFCOMM(s): SABM: cr 1 dlci 18 pf 1 ilen 0 fcs 0x32 
	> HCI Event: Number of Completed Packets(0x13) plen 5
	  01 29 00 01 00 
	> HCI Event: Link Key Request(0x17) plen 6
	  93 C1 BB 28 0A 00 
	< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
	  93 C1 BB 28 0A 00 7F 15 FC 68 8C A1 8F AA AB 68 67 9F 4D A2 
	  6C AF 
	> HCI Event: Command Complete(0x0e) plen 10
	  01 0B 04 00 93 C1 BB 28 0A 00 
	> HCI Event: Encrypt Change(0x08) plen 4
	  00 29 00 01 

Request channel 9. You need to authorize, which is also ok, but there is
no UA after it.

	< ACL data: handle 0x0029 flags 0x02 dlen 8
	    L2CAP(d): cid 0x40 len 4 [psm 3]
	      RFCOMM(s): DISC: cr 1 dlci 18 pf 1 ilen 0 fcs 0xd3 
	< ACL data: handle 0x0029 flags 0x02 dlen 8
	    L2CAP(d): cid 0x40 len 4 [psm 3]
	      RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd 

Now we ran into the connect timeout and our RFCOMM disconnects. We miss
an UA here and this is why you can't transfer any data over RFCOMM.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2004-05-28 20:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-28 15:41 [Bluez-users] connection to Motorola V525 fails Moritz Bunkus
2004-05-28 17:47 ` Marcel Holtmann
2004-05-28 18:06   ` Moritz Bunkus
2004-05-28 18:51     ` Marcel Holtmann
2004-05-28 20:10       ` Moritz Bunkus
2004-05-28 20:36         ` Marcel Holtmann [this message]
2004-05-28 20:43           ` Moritz Bunkus
2004-05-28 20:50             ` Marcel Holtmann
2004-05-28 20:57               ` Moritz Bunkus
2004-05-28 21:09                 ` Marcel Holtmann
2004-05-28 21:43                   ` Moritz Bunkus
2004-05-28 21:51                     ` 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=1085776595.4516.24.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    --cc=moritz@bunkus.org \
    /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