开发者_如何学编程
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionI've been using GSM modems in my projects to send/recieve SMS-s. I have been using built-in serial port communication features of .net to do this by using standard AT commands.
Now I have to extend its functionality (like SMSs in PDU mode, more efficient delivery report handling etc). I don't wanna reinvent the wheel, so first I'd like to know if there is a good open source project or a free library on this topic. It should send/recieve sms in text and pdu mode, handle delivery reports.
I've googled it, but I have not found an efficient one so far.
Platform: Windows/.net4/vs2010/c#
Since, you are not looking for just a client library, you need to deploy your own SMS gateway. This is what you need
I accually wrote my own SMS library in C#, back in 2005. My aim was to create a commercial library out of it, but it just never happened; besides this is probably my 1000 th project that has never been released... Anyway I decided to change that - because of this question - and will now start to release much of my superfine code under MIT license (free, free, free).
https://github.com/johanssonrobotics/FJR.SmsSolution (click the link, then the "Zip" button on GitHub to download)
Anyway, as I said, I wrote most of the code in 2005, but did some heavy refactoring to it about a year ago, so it should be solid. Anyway, feel free to test it. Comes with a demo Windows-forms application.
For instance, this could be used to connect a phone via COM-cable and send/receive SMS-messages. Easily.
Have fun & hope this helps!
If you are planning to use a local phone/gsm modem via serial you can use the following.
http://www.codeproject.com/KB/cs/SMS.aspx?msg=2961173 http://www.codeproject.com/KB/windows/smspdulib.aspx
Local serial sending will be quite slow and not good for high volume sending of messages. If you need to send high volume of sms you will need to use some sort of sms gateway.
Have you looked into the APIs provided by Tropo? I haven't used it but I gathered that if you use your own gateway, it's free, and if use theirs, it's reasonably priced.
Tom,
You should be able to use the .NET CE Framework (from within Windows) to accomplish this.
Sending SMSs from your Microsoft .NET Compact Framework-based Applications
.NET Compact Framework has built-in handling for sending SMS-s and PDU over a GSM operator and it's fairly well documented.
Also, while not straight .NET, you have options available in the base mobile/broadband api's, it's straight Windows, and can be wrapped/imported using standard .NET technologies.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd323268%28v=VS.85%29.aspx
I have found this just now:
Does anybody has experiences wit it?
精彩评论