Luca Davanzo Luca Davanzo - 10 months ago 133
Linux Question

Minicom send automate script

I'm using minicom to test my connection on serial port.

sudo minicom -b 115200 -D /dev/ttyS0

in this way minicom opens its 'console-gui' and allow me to send data.

I send:


and obtain 'OK'


and obtain 'OK'

Ans so on.

I need to run a script that write to inifinity "at" and read answer..

Any advice?

I evaluate other programs too.


Minicom have -S option for executing SCRIPT at startup time,so made a script with your commands like

vi script.txt
send atz
send at

Run your script with minicom like

minicom -S script.txt

Also refer for minicom scripting