From: Marcel Holtmann <marcel@holtmann.org>
To: Ramagudi Naziir <naziirr@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: 'cat /dev/rfcomm0' yields strange data
Date: Sun, 15 Nov 2009 12:58:01 +0100 [thread overview]
Message-ID: <1258286281.3299.28.camel@violet> (raw)
In-Reply-To: <dfb262380911140245v20973542v61cc82ba1071064d@mail.gmail.com>
Hi Ramagudi,
> # rfcomm watch /dev/rfcomm0 1 muahahahah
> Waiting for connection on channel 1
> Connection from xxx to /dev/rfcomm0
> Press CTRL-C for hangup
>
>
> on another terminal:
>
>
> # cat /dev/rfcomm0
>
> ^J^J^J
> ^J^J^J
>
>
>
> ^J
>
>
>
> ^J
>
>
>
> ^J^J
>
>
>
> ^^J
> ...
> ...
>
> and these character output goes on and on for a minute or so until it stops.
>
> Any idea what is it ? is it supposed to be here ?
> I was expecting the 'cat' command to show me only data that was sent
> from the remote end
> (e.g. If I do on the remote peer 'echo bla > /dev/rfcomm0' I do see
> the bla here on the local 'cat').
you have to switch the device into raw mode before cat will work. The
rfcomm utility should have a --raw option.
Regards
Marcel
next prev parent reply other threads:[~2009-11-15 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-14 10:45 'cat /dev/rfcomm0' yields strange data Ramagudi Naziir
2009-11-15 11:58 ` Marcel Holtmann [this message]
2009-11-15 12:26 ` Ramagudi Naziir
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=1258286281.3299.28.camel@violet \
--to=marcel@holtmann.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=naziirr@gmail.com \
/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