在Android上海斯AT命令的支持 [英] Hayes AT command support on Android

查看:328
本文介绍了在Android上海斯AT命令的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个当前的产品我就支持标准的调制解调器工作超过串行链路的命令。命令如ATD,ATH,沙滩车,ATQ ATE等要么从设备上的设备或SETI信息资料。

A current product I work on supports standard modem AT commands over the serial link. Commands such as ATD, ATH, ATV, ATQ ATE etc to either get information from the device or seti info on the device.

该器件还支持拨号PPP连接是从PC启动时,通常是美元的一些AT命令pceded p $ - ATD对例如

The device also supports dial-up PPP connection which is typically preceded by some AT commands when initiated from the PC - ATD for e.g.

我们正在考虑使用Android创建一个类似的装置和我搜索Android或Linux支持的Hayes modem AT如RS232或USB通过串行接口命令,以及是否我无法找到这样一个层或组件。

We are looking at creating a similar device using Android and I searched whether Android or Linux support Hayes modem AT commands over the serial interface such as RS232 or USB and am unable to find such a layer or component.

在Android RIL页我看到它说,Android提供了参考供应商RIL,使用海耶斯AT命令集,可以作为一个快速启动的电话测试和商业的厂商重组自交系指南用。但我认为这可能是与基带处理器或电话接口层。难道这也通常与串行接口使用其中DTE可以发出AT命令,跟我们的Andr​​oid设备?

On Android RIL page I see it says that, "Android provides a reference Vendor RIL, using the Hayes AT command set, that you can use as a quick start for telephony testing and a guide for commercial vendor RILs". But I believe this may be for interfacing with the Baseband or Telephony layer. Is this also typically used with the serial interface where a DTE can issue AT commands and talk to the Android device ?

我还研究Linux和它有一个基本的一套AT命令,但他们没有调制解调器相关的,用于不同的目的 - 例如ATQ列出了用户的暂挂作业,ATRM删除工作,通过他们的工作号标​​识。

I also researched Linux and it does have a basic set of AT commands but they are not modem related and serve a different purpose - e.g. atq lists the user's pending jobs, atrm deletes jobs, identified by their job number.

所以我期待已了解,Android或Linux内核是否具有默认的A​​T命令解析器支持贺氏AT命令集,可以通过连接到通过串行链路的Andr​​oid设备DTE设备进行访问。

So I am looking to undestand, whether Android or the Linux kernel has a default AT command parser which supports the Hayes AT Command set, which can be accessed by a DTE connected to the Android device over a serial link.

我觉得这是对手机和其他可能遇到同样的问题或问题的典型案例,但我还没有找到答案在Android论坛搜索。

I think this is a typical case for phones and other may have come across the same question or issue, but I have not found an answer searching on the Android forums.

添加更多的信息,以澄清我的问题,因为它从答案似乎是,它不是很清楚我是问

adding more info to clarify my question as it seems from the answers, it wasnt very clear what I was asking

要澄清我的问题,我不是想发出AT从Android手机的命令。而我期待发出AT命令从PC到Android手机上,如RS232 / USB /蓝牙串行连接。

To clarify my question, I am not trying to issue AT commands from the Android phone. Rather I am looking to issue AT commands from a PC to an Android phone over a serial link such as RS232/USB/Bluetooth.

我想了解Android是否本身支持AT命令,同时具备AT解析器?

I am trying to understand if Android inherently supports AT commands and has an AT parser ?

有关如建立从Windows PPP链路(拨号连接)到支持PPP的设备时,Windows会先发送一些AT命令,最后ATD(拨号)命令。该器件采用CONNECT响应作为回应,afterwhich它切换到在线模式和PPP链路建立和IP数据驾驶室在PC和设备之间发送。因此,通常这样的设备(调制解调器),默认情况下是AT模式。 ATD仅仅是这种命令。有设备支持的其他几个AT命令。

For e.g. to establish a PPP link (dial-up connection) from Windows to a device that supports PPP, windows will first send some AT commands and finally the ATD (dial) command. The device responds with a CONNECT response, afterwhich it switches to online mode and a PPP link is established and IP data cab be sent between the PC and the device. Thus typically such devices (modems) by default are in AT mode. ATD is just one such command. There are several other AT commands supported by the device.

现在开发采用Android类似的设备,我想这样做,没有显著改变Linux内核或者Andorid的架构和我看的懂,如果其认定标准定在了AT命令解析器命令由被inhenrently支持Android系统。

Now to develop a similar device using Android, I'd like to do that without significantly altering the Linux kernel or Andorid architecture and am looking to understand if a AT command parser which recognizes the standard set of AT commands is inhenrently supported by android.

为了使我的问题更清晰,考虑的情况下PC上进行例如连接到使用BT DUNS(拨号网络)配置文件的设备(手机)。该DUNS轮廓需要手机支持IE解析和识别某些AT,如AT&放指令; C,和D,和放大器; F,+ GCAP,+ GMI,+ GMM,+ GMR,ATA,D,E,H,L ,男等。

To make my question clearer, consider the case where a PC for e.g. connects to a device (phone) using the BT DUNS (dialup networking) profile. The DUNS profile requires the phone to support i.e. parse and recognize certain AT commands such as AT&C, &D, &F, +GCAP, +GMI, +GMM, +GMR, ATA, D, E, H, L, M etc.

如何Android的解决这个问题?是否有reconizing和应对这样的AT命令的原生支持?

How does Android address this ? Does it have native support for reconizing and responding to such AT commands ?

在此先感谢!

推荐答案

在Linux上,还有的聊天命令,这是通常使用的pppd的恶魔。再有就是经典的 TCL预计,其中允许使用脚本。它已经被移植到许多语言,如期待的Java ,的 Python的期望。我没有使用后两者,但它看起来好像你可以用它们作为一个库,但没有叫他们为外部程序。

On linux, there's the chat command, which was typically used by the pppd demon. Then there's the classical TCL expect, which allows scripting. It has been ported to many languages, eg expect for Java, Python expect. I haven't used the latter two, but it looks as if you can use them as a library and don't have to call them as external programs.

这是一件奇怪的事,最先进的手机仍然采用古老海耶斯在设定一个适当的API,而不是命令。

It's a curious thing that the most advanced mobile phones still use the archaic Hayes AT command set instead of a proper API..

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

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