通过 ADB Android 发送 AT 命令 [英] Sending AT Commands Via ADB Android

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

问题描述

我有一项任务在调查是否可以通过 ADB shell 向 android 设备发送 AT 命令.到目前为止,我已经尝试回显 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.

推荐答案

请试试这个:

echo -e "AT+CFUN=?
" > /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

注意:

也可能有手机不响应任何串行 (tty) 设备上的 AT 命令.
我刚刚在三星 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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆