public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: franz keuner <franz_keuner@gmx.net>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] rfcomm receive problem and success
Date: Wed, 24 Mar 2004 12:59:28 +0100	[thread overview]
Message-ID: <1080129568.2515.100.camel@pegasus> (raw)
In-Reply-To: <7407.1080119240@www16.gmx.net>

Hi Franz,

> with your help i had quite a success in sending data from my mobile phone to
> bluez.
> but there's something i don't understand.
> i registered a SP service: sdptool add --channel=10 SP
> 
> ./rctest -d
> rctest[2482]: Waiting for connection on channel 10 ...
> rctest[2483]: Connect from 00:00:00:00:00:00
> rctest[2483]: Receiving ...
> rctest[2483]: Recevied 51 bytes
> rctest[2483]: Disconnect
> 
> and the programm doesn't exit, i have to use ctr-c to stop it. is this
> normal or is something going wrong although  the receiving was successful?

this is normal, because you can connect another time.

> and something else: 
> if i try to receive with the 'r' option there's an error:
> 
> ./rctest -r
> rctest[2458]: Waiting for connection on channel 10 ...
> rctest[2459]: Connect from 00:00:00:00:00:00
> rctest[2459]: Receiving ...
> rctest[2459]: Read failed. Connection reset by peer(104)
> rctest[2459]: Disconnect
> 
> has anybody an idea what's my fault?

You received data (one UIH frame) and then the phone disconnects you.
Actually they are the same 51 bytes as above, but you only see an extra
error message.

Regards

Marcel




-------------------------------------------------------
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-03-24 11:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-24  9:07 [Bluez-devel] rfcomm receive problem and success franz keuner
2004-03-24 11:59 ` Marcel Holtmann [this message]
     [not found]   ` <18344.1080206436@www52.gmx.net>
2004-03-25 23:58     ` 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=1080129568.2515.100.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=franz_keuner@gmx.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