I have 2 Question:
I want to send AT-Command to a serial port in android. so I did these steps:
- rooted my mobile
- install Terminal Emulator to insert unix command
insert:
su
then:
echo -e "AT" > /dev/smd0
cat dev/smd0
or
echo -e "AT" > /dev/ttyS0
cat dev/ttyS0
both don't gave me the response.
I think there is no problem in echo command but how can I read the answer? (Q1)
in this link: How to send a sequence of AT commands to a serial port in bash?
there is something close to my question but it seems that they insert the command on the computer not a phone. in both cases what is ppp packet and how can install it on my mobile and what dose it mean? (Q2)