Re: 'cat /dev/rfcomm0' yields strange data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux