adb shell
busybox telnet localhost
busybox microcom /dev/smd8I want to programmatically store some modem logs via AT commands (with a bash script).
I tried @Luxferre's method, like:
#!/system/bin/sh
cat /dev/smd8 > /sdcard/log.txt &
echo -e '[my_command]\r' >
/dev/smd8
But I didn't find the result in the file.
I somehow presume it is because of the '\r' that doesn't work out properly in cases of setting stdout to a file (because when doing same in shell, I do sometimes need to press enter etc).
Can anyone with Linux
experience please advice?
Thanks in advance,
PuriShnit
echo -e 'ati\r' | busybox microcom -t 250 /dev/smd8 > out.log
Thanks a million!
I will try it tomorrow...
Although - knowing you - I assume it will be working :D
I tried it today, and it works!!
Thanks again!
UPDATE:
root@Nokia 8110 4G:/ # busybox microcom -X -t 3000 /dev/smd8AT+ICCIDICCID: 89441000300168994345
OKroot@Nokia 8110 4G:/ # echo -e 'AT+ICCID\n' | busybox microcom -X -t 1000 /dev>AT+ICCID
root@Nokia 8110 4G:/ #
root@Nokia 8110 4G:/ # echo -e 'AT+ICCID\n' | busybox microcom -X -t 1000 /dev/smd8AT+ICCID
root@Nokia 8110 4G:/ #
echo -e 'AT+ICCID\r' | busybox microcom -X -t 1000 /dev/smd8 <AT+ICCIDICCID: 8949212781XXXXXXXX
OKCorrect :D
Now works! Thanks.
BTW, is it really bad to share
my ICCID? (and how about IMEI)