Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

 atz

and obtain 'OK'

at

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.

like image 630
Luca Davanzo Avatar asked Jul 07 '14 11:07

Luca Davanzo


People also ask

What is Runscript?

runscript is a simple script interpreter that can be called from within the minicom communications program to automate tasks like logging in to a Unix system or your favorite BBS.


1 Answers

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 http://www.linuxcommand.org/man_pages/runscript1.html for minicom scripting

like image 64
Rahul R Dhobi Avatar answered Oct 12 '22 22:10

Rahul R Dhobi