在gsm调制解调器中显示所有消息并逐一读取 [英] display all the messages in gsm modem and read it one by one

查看:82
本文介绍了在gsm调制解调器中显示所有消息并逐一读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我目前正在进行发送中的项目,并使用与我的计算机连接的GSM调制解调器接收短信.我正在C#中使用串行端口通信来执行此操作.
我的问题是,
我如何在列表视图控件的调制解调器收件箱中显示所有消息.当我在列表视图中单击特定消息时,整个消息将以以下格式显示,

来自:+91 ....日期和时间:xxxxx
消息:kjsdfhkjshd,fksjfn,sdofj

hi to all ,
i am currently doing a project in sendin and receiving sms using GSM modem connected with my computer. I am using serialport communication in C# to do this.
my question is,
how i can display all the messages in my modem inbox in a List View control. and when i click a particular message in the list view,the entire message is displayed in the following format,

from:+91.... date and time:xxxxx
Message: kjsdfhkjshd,fksjfn,sdofj

推荐答案

检查此链接:
Check this link: Send and Read SMS through GSM Modem using AT Commands[^]. It will give you a start. Rather it will do most of the things you need. You just need to make a few changes to work it for your requirement.


PS: I know it''s an old post but thought my answer still may help you. :thumbsup:


C#中对SMS的支持几乎为零.我相信您可以发送调制解调器命令来发送诸如SMS消息之类的消息,但是诸如如何单击消息以及如何以这种格式显示消息"之类的问题让我想知道您是否意识到您要求我们为您提供一些琐碎的渲染细节.您确实知道如何创建带有接受点击事件的列表视图的应用程序,对吗?如果没有,您应该先阅读一本基础书籍,然后再想知道如何从调制解调器发送和接收数据.
There is literally zero support for SMS in C#. I believe you can send your modem commands to get it to send back things like SMS messages, but questions like ''how do I click on a message, and how do I show it in this format'', makes me wonder if you realise that you''re asking us to help you with trivial rendering details. You do know how to create an app with a listview that accepts click events, right ? If not, you should read a basic book before wondering how to send and recieve data from your modem.


这篇关于在gsm调制解调器中显示所有消息并逐一读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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