发送AT命令通过ADB的Andr​​oid

发送AT命令通过ADB的Andr​​oid

本文介绍了发送AT命令通过ADB的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作中有任务,以调查是否有可能通过ADB shell来发送AT命令到Android设备。到目前为止,我已经尝试呼应出来的AT命令,但它通过其视为普通字符串。
任何帮助,请任何人。

I have a task at work to investigate if it is possible to send AT commands to an android device via ADB shell. So far,I have tried to echo out the AT commands but it passes them as normal strings.Any help please anyone.

推荐答案

请试试这个:

Please try this:

echo -e "AT+CFUN=?\r\n" > /dev/ttyUSB0

在您的手机,串口线必须不一定叫 ttyUSB0 。如果这不工作或不可用,请查看的/ dev / 目录中的其他条目。结果
因此,它也有可能是的/ dev / ttyGS0 的/ dev / SMD0 (由@Sani发现了)。

On your phone, the serial line must not necessarily be called ttyUSB0. If this is not working or not available, check out the other entries of the /dev/ directory.
So it could also be /dev/ttyGS0 or /dev/SMD0 (as found out by @Sani).

有关详细信息,请看看这个

For further information, please check out this Guide

请注意:

有也可能是手机,不回应AT的任何命令的它们的序列(TTY)设备。结果
我只是想在三星Galaxy S4我自己的程序,没有任何成功。

There might also be phones, that do not respond to AT commands on any of their serial (tty) devices.
I just tried my own procedure on a Samsung Galaxy S4 and did not have any success.

这篇关于发送AT命令通过ADB的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 01:36