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

Step-by-Step descriptions of how to do things.

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

Postby ^rooker » Fri Jan 25, 2019 2:01 am

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:

  • 0

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!
User avatar
Site Admin
Posts: 1444
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to HowTo's

Who is online

Users browsing this forum: No registered users and 1 guest

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: No registered users and 11 guests

Reputation System ©'