AT command Send Expect via Minicom does not recognize quotations

208 views Asked by At

Currently I have the following script running via minicom.

minicom -b 115200 -D $MODEM_DEVNODE -t vt100 -S csq.txt -C csq_results.txt < escape.txt

csq.txt

send AT+QENG="servingcell"
expect "OK"
sleep 5
send AT+COPS?
expect "+COPS: 

When I enter AT+QENG="servingcell" manually I am able to see the desired serving cell properties. However, when I run the script I see an error. Can someone explain to me why it does not like the "" in the script?

1

There are 1 answers

0
VLSI_EE_01 On

I figured out how to escape the quotations

send AT+QENG=\"servingcell\"