如何通过C ++代码与GSM调制解调器通信 [英] How to communicate with GSM modem from c++ code

查看:92
本文介绍了如何通过C ++代码与GSM调制解调器通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有华为GSM调制解调器,我希望从我的c ++应用程序读取和发送SMS。是否有人知道如何通过代码建立通信(什么是通信协议,我知道如何连接到串行端口并在那里读写数据)。

I have huawei GSM modem and I wish to read and send SMS from my c++ application. Does anybody know how to establish communication from code (what are communication protocols, I know how to connect to serial port and read and write data there).

我已经阅读了一些内容关于AT命令,但不知道如何应用。

I have read something about AT commands but don't know how to apply it.

推荐答案

您只是通过串行端口以字符串形式发送了AT命令

You just sent the AT commands as strings via the serial port

这篇关于如何通过C ++代码与GSM调制解调器通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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