使用 GSM 调制解调器与 Android 通信
我正在尝试开发一个连接到 GSM 的 Android 应用程序 调制解调器。我想知道是否可以开始连接 调制解调器(通过 GSM)并向调制解调器发送文本命令并监听 其回应。
I'm trying to develop an Android application that connects to a GSM
modem. I like to know if it's possible to start the connection with
the modem (over GSM) and send text commands to the modem and listen
for its response.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常,移动设备无法接受传入连接,这些连接被移动网络中的防火墙阻止。
解决这个问题的方法是在移动网络或互联网上放置一个服务器,Android 手机和 GSM 调制解调器都连接到该服务器。
Normally mobile devices cannot accept incoming connections, these are blocked with firewalls in the mobile network.
The way around this is to put a server in the mobile network or on the internet wo which both, the android mobile and the GSM modem, connect to.
与 GSM 调制解调器的通信是使用 Android 操作系统中的 AT 命令完成的。如果不重新编译操作系统并进行一些修改,Android 应用程序无法直接调用它们。
Communication with the GSM modem is done using AT commands within the Android OS. They are not able to be called directly by the Android Application without recompiling the OS with some modification.