使用C ++的Executin AT命令 [英] Executin AT command using c++

查看:76
本文介绍了使用C ++的Executin AT命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请我想知道如何使用c ++执行AT命令.我正在研究需要发送SMS消息的c ++应用程序.
我想知道是否有任何功能可以做到这一点.
我正在使用GSM/GPRS调制解调器

在此先感谢

解决方案

Google揭示了所有内容

[ http://65.39.148.41/KB/IP/Send_and_Read_SMS.aspx?display=Normal&fid=1544794&df=90&mpp=25&noise=3&sort= Position& view = Quick& select = 3772649& fr = 206& prof = False [ [ [ ^ ]


please i would like to know how to execute AT command using c++.I am working on a c++ application that needs to send an SMS message.
i would like to know if there are any functions that can do that.
i am uisng a GSM/GPRS modem

thanks in advance

解决方案

Google reveals all

12.4 MILLION Google results for "C++ AT Commands modem"[^]


Not in C++, your modem should probably have some sort of device dependent API or control mechanism for interfacing programmatically, but C++ doesn''t. There may also be libraries available to help you achieve this faster, but you''ll have to look for these specifically.

Essentially what you need to learn is how to establish serial communications then pass/receive commands and responses from your modem.

Here''s an example (but it''s in C#):
http://65.39.148.41/KB/IP/Send_and_Read_SMS.aspx?display=Normal&fid=1544794&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=3772649&fr=206&prof=False[^]


AT+CMGS is what you need. Start with this[^] and this[^]


这篇关于使用C ++的Executin AT命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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