Qt:发送AT命令到GPRS调制解调器
Qt : send AT command to GPRS modem
我有一个带有GPRS屏蔽的Arduino板。我可以用Arduino的IDE发送和接收短信,但我现在要使用Wavecom GPRS调制解调器。
我可以连接和发送字符串从Qt到Arduino板,这样当Arduino收到一个特殊的字符串从Qt,它发送短信。
但是现在,我被困住了…不知道如何直接从Qt发送AT命令,而不仅仅是发送Arduino等待发送SMS的字符串…
现在有人如果有可能从Qt发送AT命令到GPRS调制解调器?
Arduino code:void loop()
{
//Check if available
if (Serial.available())
{
// read the incoming byte:
incomingByte = Serial.read();
//Just to show how it works
if(incomingByte == 'X')
{
AT commands to send an sms
}
}
else
delay(5); // there is nothing to read, so wait a few msec's
}
AT
命令通常通过串口发送,由GPRS调制解调器上的控制器软件进行处理。因此,您只需要关心Qt应用程序中的发送端。
因此,您只需通过QtSerialPort模块使用QIODevice::write()
接口:
mySerialPort->write("My AT command");
相关文章:
- 使用std::multimap迭代器创建std::list
- 来自 std::list 的迭代器 .end() 按预期返回"0xcdcdcdcdcdcdcdcd"但 .begin()
- Linux的Cpp上的计时器
- Ardunio UNO解决了多个重叠的定时器循环
- 提升 ASIO 无法识别计时器对象
- 如何在c++17中制作一个模板包装器/装饰器
- C++ 雷神库 - 使用资源加载器类时出现问题(不命名类型)
- C++中带有List类的迭代器Segfault
- std::vector的包装器,使数组的结构看起来像结构的数组
- 本质:使用__128寄存器
- 为什么此串行/调制解调器代码弄乱了我的终端显示
- 如何在连接到PC的gsm调制解调器中管理收到的短信?
- 调用:: C 中的调制解调器的CreateFile总是返回error_sharing_violation
- 如何将数据发送到QT中打开的tty0tty null调制解调器模拟器端口
- 如何在c++linux下获取3g调制解调器信号强度
- Qt:发送AT命令到GPRS调制解调器
- 使用gammu时自动检测调制解调器端口
- WriteFile到调制解调器后的ReadFile只返回通过WriteFile发送的内容
- 如何与GSM调制解调器通信的c++代码
- 在第一次使用ISDN调制解调器(c#)拨号时挂断电话