public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* 'cat /dev/rfcomm0' yields strange data
@ 2009-11-14 10:45 Ramagudi Naziir
  2009-11-15 11:58 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Ramagudi Naziir @ 2009-11-14 10:45 UTC (permalink / raw)
  To: linux-bluetooth

# 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').

thank you for the help
naziir

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 'cat /dev/rfcomm0' yields strange data
  2009-11-14 10:45 'cat /dev/rfcomm0' yields strange data Ramagudi Naziir
@ 2009-11-15 11:58 ` Marcel Holtmann
  2009-11-15 12:26   ` Ramagudi Naziir
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2009-11-15 11:58 UTC (permalink / raw)
  To: Ramagudi Naziir; +Cc: linux-bluetooth

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 'cat /dev/rfcomm0' yields strange data
  2009-11-15 11:58 ` Marcel Holtmann
@ 2009-11-15 12:26   ` Ramagudi Naziir
  0 siblings, 0 replies; 3+ messages in thread
From: Ramagudi Naziir @ 2009-11-15 12:26 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-bluetooth

Hi Marcel,

On Sun, Nov 15, 2009 at 1:58 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
> you have to switch the device into raw mode before cat will work. The
> rfcomm utility should have a --raw option.

Do I have to do that also if I plan to open /dev/rfcomm0 with an
application that expects a standard serial tty device (e.g. I usually
feed it with /dev/ttyS1) ?

Can you please explain in a few words what exactly does --raw do ?

Thanks!
Naziir
>
> Regards
>
> Marcel
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-15 12:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-14 10:45 'cat /dev/rfcomm0' yields strange data Ramagudi Naziir
2009-11-15 11:58 ` Marcel Holtmann
2009-11-15 12:26   ` Ramagudi Naziir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox