简体   繁体   中英

How to run AT commands in Android terminal as root user?

I have root my Android mobile (Spice MI 270). I want to run AT commands. But whenever I try to run any AT command form shell, it is giving messages as 'AT not found'. My whole purpose of routing is to give AT commands to modem.

How should I proceed?

Thanks.

You can use the program atinout which will allow you to easily send AT commands from the commands line. Example to hang up a call:

$ echo ATH | atinout - /dev/ttyACM0 -
ATH
OK
$

You need to find the name of the serial device for android (on desktop linux it is typically /dev/ttyACM0 but Android use something different as far as I remember).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM