如何在VC ++中使用AT命令配置GSM调制解调器 [英] How to Configure GSM Modem Using AT commands in VC++

查看:114
本文介绍了如何在VC ++中使用AT命令配置GSM调制解调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想使用vc ++中的AT命令与gsm调制解调器进行通讯,但我无法这样做. ...预先感谢您.

Hello , i would like to communicate with gsm modem using AT commands in vc++ but i unable to do so.I tried in different ways but unable to read data.so please help me....its urgent.......thank you in advance.

推荐答案

首先,您必须了解VC ++中的串行通信.

First you have to know about the serial communication in VC ++

Here[^]

Using the serial Port class/object you can send(commands)/receive(responses) from your modem.


我建​​议

1)首先使用串行端口终端测试您的gsm调制解调器.熟悉波特率,数据位,错误检查...

2)某些设备需要将位dtr(数据传输准备好吗?)或rts(准备发送?)设置为true.

3)在某些情况下,您需要发送"unsigned char"
I suggest

1)test your gsm modem with serial port terminal first. Be familiar with baud rate,data bits, error checking...

2)some devices require set bit dtr (data transmit ready?)or rts (ready to send?) to true.

3)In some case you need to send "unsigned char"


这篇关于如何在VC ++中使用AT命令配置GSM调制解调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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