Hi all,
 How to write a script for send AT commands to modem?
 I can use only Screen because LTIB Failed when I select Minicom package
 
 Is possible run a script that open Screen and after write AT command like:
 
 AT+CGREG
 AT!PADCONF?1
 ....etc..
 
 I will also do a check on the answers that I receive:
 
 if [response from AT+CGREG] != 'ok'
 echo 'ERROR'
 else
 echo 'no error'
PS: I can install minicom on my board manually without LTIB?
 thanks for your help
 Regards
how can control answer of modem?
I think that i have resolved with this script:
#! /bin/sh
cat /dev/ttyUSB3 /home/giuseppe/Scrivania/imsi.txt &
sleep 1
# stty ispeed 115200 ospeed 115200 -echo
# echo AT > /dev/ttyUSB3
chat -V -s '' 'AT+creg?' '' > /dev/ttyUSB3 < /dev/ttyUSB3
sleep 2
chat -V -s '' 'AT' '' > /dev/ttyUSB3 < /dev/ttyUSB3
sleep 2
killall cat
exit 0
what do you think?
and now how i can read answers and put in variables?
thanks
I need a script that i launched from the shell of the board iMX53 sending a series of AT commands to the modem that is connected to ttyUSB3. I only have "screen" installed on the board because minicomgives problems ... For example:
#! / bin / bash
Screen / dev/ttyUSB3 115200
send command AT + cgreg
sleep 2
$ Answer = read answer1
send command AT + cgreg
sleep 2
$ Answer = read Answer2
what is pppd? can you give me scrpt?
thanks
