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 Alex


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 Alex