Page 1 of 1

HowTo get some output of "cat /dev/ttyUSB0" (from IR remote)

Posted: Fri Jan 25, 2019 2:01 am
by ^rooker
Playing around with a TSOP1738 directly connected to an FTDI USB adapter (FT232RL).
When I hit buttons on the remote, I see the RXD led flash, but "cat /dev/ttyUSB0" shows nothing.

Thanks to a post on stackexchange, here's a command that will give you at least "something" when you hit a button on the remote:

Code: Select all

$ stty raw -echo < /dev/ttyUSB0; xxd -p /dev/ttyUSB0
(btw: The original command used "cat -vte" instead of "xxd -p")

In my case, it returns something like this:
fefefefefefefefefefefefefefefefefefefefefefefefefefe
fefefefefefefefefefefefefefefefefefefefefefefefefefefefefefe
fefefefefefe7e7f7f7ffffefefefefefefefefefefefefefefeff7ffffe
fefefefefefefefefefefefefefefe7ffffefefefefefefefefefefefefe
7f7f7f7ffefefefefefefefefefefefefefefefe7ffffefefefefefefefe
fefefefefefefefe7ffffefefefefefefefefefefefefefefefefefefcfc
fcfefcfcfcfcfcfcfefcfcfefcfcfefe
8)