basic concept for sending receiving sms from C# application using gsm modem

冷暖自知 提交于 2019-12-21 18:12:49

问题


Can anyone explain me the basic concept or provide me any documentation on sending receiving the sms using the gsm modem connected to pc via a C# application.

I did find lot of source codes but not able to get what is the procedure or algorithm behind it.

One such link is here

http://www.freestudentprojects.com/c-net-projects/send-and-receive-sms-in-net-using-gprs-modem/

I downloaded the source code but the things are not quite clear.

thanks, s


回答1:


You need ATCommands to communicate with GSM modem. This is very good codeproject article for understanding the procedure with demo.




回答2:


You can use AT commands, or if you are on Windows 7 or 8, you can use the Mobile Broadband API. There is yet another API if you are developing in Win 8 Metro.

Mobile Broadband API reference is here: http://msdn.microsoft.com/en-gb/library/windows/desktop/dd323269(v=vs.85).aspx

There is a paper about using it with C# here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd323271(v=vs.85).aspx

The complete 3GPP AT command reference for GSM modems is TS 27.007, it is here: http://www.3gpp.org/ftp/Specs/html-info/27007.htm Be aware that most modems have manufacturer specific AT commands as well, some of which are public and some aren't. But for simple procedures like sending/receiving SMSes, you probably won't need them.

The source code that you have will first identify programmatically which port the modem is connected on, and then it will send AT commands. Or, it will identify the network adapter that represents the modem, and using the Windows id, will call Mobile Broadband API functions. So look in the code for these procedures. That's an interesting site, by the way - it was new to me.



来源:https://stackoverflow.com/questions/13642057/basic-concept-for-sending-receiving-sms-from-c-sharp-application-using-gsm-modem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!