Skip to content Skip to sidebar Skip to footer

Using At Commands With An Android Phone

I'm writing a program that is able to send and receive data from the GSM modem in my Android phone with AT commands. I execute the following shell script: su echo -e 'AT+CSQ?\r' &g

Solution 1:

You can try to use the atinout program, it should behave like the following:

$ echo AT+CSQ | atinout - /dev/smd0 -
AT+CSQ
+CSQ: <rssi>,<ber>

OK
$

Run as ... - /dev/smd0 /dev/asd.txt if you want to capture the results like in your code. Notice that you should run AT+CSQ, not AT+CSQ?.

(the Makefile in atinout-0.9.tar.gz needs a small change to compile, the git source is fine).

Post a Comment for "Using At Commands With An Android Phone"