使用gsm调制解调器在C#中发送接收短信 [英] Sending Receiving Sms in C# using gsm modem

查看:109
本文介绍了使用gsm调制解调器在C#中发送接收短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在用C#开发一个能够发送/接收短信的应用程序。我做了很多研究,发现我们可以使用GSM调制解调器实现它。但如果我使用GSM调制解调器发送短信,那么我需要为我使用的每个调制解调器编写特定的代码。有没有
,我可以通过哪种方式编写可以从连接到PC的所有调制解调器发送短信的通用或通用代码?我知道如果我们使用SMS网关,代码将是通用的,但是我可以为调制解调器实现相同吗?



此外,在许多示例代码中我看到了用于发送SMS,即使用调制解调器所连接的端口号。是否可以动态找出该端口号?由于我的应用程序将与基于Web的项目集成,因此无法
提供调制解调器连接的端口号。



提前致谢,

Hi Everyone,

I am developing an application in C# which should be able to send/receive SMS. I did a lot of research and found that we can achieve it using the GSM modem. But if I use a GSM modem to sent SMS, then I need to write specific code for each modem I use. Is there any way by which I can write a common or generic code which can send SMS from all modems connected to PC? I know if we use SMS gateway the code will be generic, but can I achieve the same for modems?

Also, in many sample codes I saw that for sending the SMS, the port number where the modem is connected is to be used. Is it possible to find out that port number dynamically? As my application will be integrated with web based project it is not possible to provide the port number where the modem is connected.

Thanks in advance,

S

推荐答案

这是一个致力于Project和Project Server的编程和自定义,Microsoft的日程安排工具的论坛。所以我很害怕,你不会在这里得到很多回应。我建议寻找一个更合适的论坛来获得支持。

this is a forum dedicated to programming and customizations of Project and Project Server, scheduling tools of Microsoft. So I am afraid, you will not get much response here. I suggest to search for a more appropriate forum to get support.

问候

Barbara

Regards
Barbara


这篇关于使用gsm调制解调器在C#中发送接收短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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