短信应用程序接收短信问题 [英] SMS Application Receive SMS problem

查看:188
本文介绍了短信应用程序接收短信问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我现在处于SMS项目中.我需要通过调制解调器发送和接收SMS.我完成了COM端口打开模块和SMSSending模块.但是我找不到如何从调制解调器读取短信的方法,而且我还需要在收到SMS时通知我的应用程序.我不知道该如何实现.如果有人知道指导我......

在此先感谢
ganesh_IT

Hi guys now i am in a SMS project. I need to send and receive SMS through modem. I done COM port opening module and SMSSending module.But i cannot find how to read sms from the modem and also i need to notify my application when the SMS is received.I don''t know how to achieve this. If any one know guide me....

Thanks in advance
ganesh_IT

推荐答案

您是否尝试过使用调制解调器手册.这是相当特定于硬件的编程.只有硬件手册才能让您知道谁支持短信读取/写入和通知.

因为您使用的是旧的COM Port..AT命令列表因硬件不同而有所不同.
Have you tried modem manual for same. this is quite hardware specific programming. only hardware manual can let you know who it support sms reading/writing and notification.

since you are using old COM Port..AT command list is different for different hardware.


我也对此深有感触..如果您发现有任何问题,请帮助我
谢谢...
i am also struck up wit this.. if you found anything please help me
thanks...


嗨surajking123,

我想出了一些阅读SMS的想法.以下是详细信息.

首先,我们必须设置调制解调器的操作模式
AT + CMGF = 1//文本显示模式

然后,我们必须选择要在SIM或电话/调制解调器内存中读取短信的位置
AT + CPMS ="SM"//SIM卡.用于电话/调制解调器内存AT + CPMS ="ME"

AT + CMGL ="ALL"//列出sim中的所有短信
AT + CMGL ="REC READ"//列出所有已读取的短信
AT + CMGL ="REC UNREAD"//列出所有未读的短信
AT + CMGR = 1//读取第一个短信
Hi surajking123,

I figure out some ideas for reading SMS.Here is the details.

First we have to set the operation mode for modem
AT+CMGF=1 //text opeartion mode

Then we have to select the location where we are going to read sms in SIM or Phone/Modem Memory
AT+CPMS="SM" // sim. for Phone/Modem Memory AT+CPMS="ME"

AT+CMGL="ALL" //list all the sms in sim
AT+CMGL="REC READ" // list all already readed sms
AT+CMGL="REC UNREAD" // list all unreaded sms
AT+CMGR=1 //read the first sms


这篇关于短信应用程序接收短信问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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