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" > /dev/smd0
cat /dev/smd0 > /dev/asd.txt
The asd.txt file is created, however there is nothing in it (it should write out the signal strength). It looks like it hangs at the cat command, I think because it doesn't get any output. I've tried some other commands, but I had no luck so far. Can you recommend anything?