Article 5BKB7 Send command to ELM327 via USB and get the answer in a $VAR?

Send command to ELM327 via USB and get the answer in a $VAR?

by
WarumLinuxBesserIst
from LinuxQuestions.org on (#5BKB7)
Hello,

I am looking for a solution, to send a command to my ELM327 device, connected via /dev/ttyUSB0

I figured out, that I can connect by the command:
screen /dev/ttyUSB0

There I can type a for example: 01 01
and I will receive an answer.

But I am looking for a solution, to send this 01 01 command via bash script and fetch the answer in a $VAR
so I can analyze this data in a bash script.

And idea?

Thanks Alexlatest?d=yIl2AUoC8zA latest?i=4sKXrjgZpgA:hskJXPIwzOk:F7zBnMy latest?i=4sKXrjgZpgA:hskJXPIwzOk:V_sGLiP latest?d=qj6IDK7rITs latest?i=4sKXrjgZpgA:hskJXPIwzOk:gIN9vFw4sKXrjgZpgA
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