C#和AT命令:接收短信 [英] C# and AT Commands : Receiving SMS

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

问题描述

大家好

目前,我有一个LEON-G100四频段GSM/GPRS数据和语音模块.它已集成到串行桥"中,使我可以简单地通过调制解调器进行接收并从调制解调器接收文本.调制解调器处理所有其自身的操作,我只需使用AT命令对其进行控制.

最初的目的是仅向用户发送SMS,而我能够轻松做到这一点.现在,我需要它来接收SMS并提醒C#程序,该程序在消息的后台运行.

硬件不是问题,通信仍然照常进行,但是调制解调器似乎不再接收SMS了,但是它仍然可以发送它们. :confused:

必须有一个AT命令来设置SMS的存储位置并打开警报功能.我不知道它是什么,但我相信它是AT + CNMI命令,在更改此设置后,"fit fit the shan":omg:并且调制解调器停止接收SMS并发出警报我给他们收据. [注意:IT DID WORK:confused:]

我想知道是否有人知道要使其正常工作的设置,没有AT命令组,并且该项目位于C#:cool :.

我知道它一定是调制解调器的这一部分,因为调制解调器和程序中的所有其他功能均未受影响.:mad:

我需要有关此主题的帮助,我很快就需要帮助,我的截止日期快到了,这是所需的最后一项功能.

注意:可根据要求提供C#代码示例.

注意:使用C#2.0是为了使旧版XP计算机具有完整功能,而无需安装任何软件.该程序将与实时控制系统一起运行,该系统对新安装非常敏感.

谢谢:)

Hi all

Currently I have a LEON-G100 quad-band GSM/GPRS Data and Voice Module. This has been integrated into a ''Serial Bridge'' that allows me to simply pump through and receive text from the modem. The modem handles all of its own operations, I simply control it using AT commands.

It was originally intended to only send SMS''s to users, and I was able to do this with ease. Now I need it to receive SMS''s and alert a C# program, that runs in the background of the message.

The hardware is not the problem, the communication is still working as usual however the modem does not seem to receive SMS''s anymore, but it can still send them. :confused:

There must be an AT command to set the locations to which the SMS''s are stored and to turn the alert function on. I don''t know what it is but I believe it to be the AT+CNMI command, which after changing this setting, the ''fit hit the shan'' :omg: and the modem stopped receiving SMS''s and alerting me to their receipt. [NOTE: IT DID WORK:confused:]

I would like to know if anyone knows of the settings to get this to work, there was no AT command group and the project is in C#:cool:.

I know it must be this part of the modem as all other functionality within the modem and program have remained untouched.:mad:

I need help on this topic and I need it soon, my deadline is fast approaching and this is the last piece of functionality needed.

Note: C# code examples can be provided on request.

Note: C# 2.0 is used in order to full functionality with older XP machines without having to install anything. This program is to run in conjungtion with a real-time control system, that is very sensitive to new installations.

Thanks :)

推荐答案

jazzalange写道:
jazzalange wrote:


必须有一个AT命令来设置SMS的存储位置


There must be an AT command to set the locations to which the SMS''s are stored


它是AT+CPMS-首选消息存储.
选项包括:SM,ME,MT


It''s AT+CPMS - Preferred Message Store.
The options are: SM, ME, MT

jazzalange写道:
jazzalange wrote:


我不知道这是什么,但我相信它是AT + CNMI命令,在更改此设置后,安装成功" OMG,并且调制解调器停止接收SMS,并提醒我他们的收据.


I don''t know what it is but I believe it to be the AT+CNMI command, which after changing this setting, the ''fit hit the shan'' OMG and the modem stopped receiving SMS''s and alerting me to their receipt.


此命令用于将新的消息指示发送到TE(计算机).

您必须对此命令进行了一些更改,这些更改已停止向系统发出警报.
我已经使用C#实现了一个类似的应用程序,而没有使用任何第三方库.我想我可以帮你.您需要检查AT+CNMI命令的其他配置.

该网站还应该帮助您理解AT命令: http://www.developershome.com/sms/atCommandsIntro.asp [ ^ ]

尝试建议,让我知道您是否能够解决.
我很乐意为您提供帮助.

PS:我要出门开车,一个小时后就会回来.


This command is for sending new message indication to TE (computer).

You must have done some changes in this command which have stopped the alert to the system.
I have implemented a similar application using C# without using any third party library. I think I can help you with this. You need to check different configuration of AT+CNMI command.

This website should also help you in understanding AT Commands: http://www.developershome.com/sms/atCommandsIntro.asp[^]

Try the suggestions and let me know if you are able to solve it.
I would be happy to help you with this.

PS: I am going out on a drive and will be back after an hour or so.


这篇关于C#和AT命令:接收短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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