Article 4QQPN trying to read and display data from ttyUSB0

trying to read and display data from ttyUSB0

by
RonHof
from LinuxQuestions.org on (#4QQPN)
Im trying to read and display a data string from ttyUSB0 with a Raspberry Pi. The data is a decimal number. There are two conditions 1) the number is static but repeated over and over or 2) continuously changing. The command stty raw -echo < /dev/ttyUSB0; cat -vte /dev/ttyUSB0 produces this typicaly on the terminal line ^@^X^XM-^XM-f^XM-^F~M-^XM-xM-^X^^^@^X^XM-^XM-f^XM-^F~M-^XM-xM-^X^^^@^X^XM-^XM-f^... Ultimately I would like to display this number on the terminal screen in a large high contrast font. There may be easier better ways to access the data string... tried using Python Serial module but couldn't get it to work... newbie retread here - simple is good!
Thanks for your helplatest?d=yIl2AUoC8zA latest?i=cZVGRUadQhM:cd74CCk70zw:F7zBnMy latest?i=cZVGRUadQhM:cd74CCk70zw:V_sGLiP latest?d=qj6IDK7rITs latest?i=cZVGRUadQhM:cd74CCk70zw:gIN9vFwcZVGRUadQhM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments