public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@nokia.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] weird behaviour with bluez and obex
Date: Thu, 8 Apr 2004 13:05:44 +0300	[thread overview]
Message-ID: <20040408100543.GA10479@kone> (raw)

Hi,

I have been trying to get obex file transfer working with bluez and
openobex by using a local rfcomm device which is bound to the OBEX file
transfer RFCOMM channel of my phone.

The problem I encountered was that the connection was dropped almost
imediately after some bytes were writen to the device. After some
further investigation, it turned out that the connection is always
dropped when more than two bytes are written to the device. This happens
also for OBEX Object Push. Using "rfcomm connect" instead of binding
causes this behaviour also. Other profiles (eg. DUN) do not have
this behaviour.

If I use the bluez socket interface to create the connection everything
works fine (and I guess this is the way most existing BT OBEX
applications work). I also checked with affix (which now also has
binding support) and the problem does not exist there.

The HCI Disconnection Complete event which is generated by the
disconnection has 0x16 (connection terminated by local host) as the
reason parameter, which implies that the problem is not on the phone
side, but in bluez.

Can anyone reproduce this behaviour? Any ideas what's causing it?

I'm using kernel version 2.6.5.

Johan



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2004-04-08 10:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-08 10:05 Johan Hedberg [this message]
2004-04-08 10:19 ` [Bluez-devel] weird behaviour with bluez and obex Marcel Holtmann
2004-04-08 10:38   ` Johan Hedberg

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=20040408100543.GA10479@kone \
    --to=johan.hedberg@nokia.com \
    --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