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

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1469
Joined: Fri Aug 29, 2003 8:39 pm

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

Post 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)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply