Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Sending SMSs from a Netduino


  • Please log in to reply
10 replies to this topic

#1 andersborg

andersborg

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 19 September 2011 - 08:39 PM

Here's a Netduino magically sending SMSs without there being any phone connected to it. The blog entry explains how. http://abiro.com/w/2...ased-on-events/ Cheers, Anders

#2 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 20 September 2011 - 05:37 AM

Nice wrapper! Do you know what the cost per sms works out to? I can't find their pricing :blink: I pay 0.026 U.S. dollars per sms from my current provider - but I'm always willing to hop.

#3 andersborg

andersborg

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 20 September 2011 - 08:21 AM

I checked sending from USA to USA or other countries, and it's 6 Euro cents, which is not competitive. I normally pay around 1.8 Euro cents, which is similar to what you mention. Actually Sweden is the only country where Infobip provides such low rates, so I feel slightly privileged. For info, this is how the code looks like for sending SMSs to Infobip (without the credentials of course). As can be seen UrlEncode(Hashtable) makes it so much less error-prone, even though it probably kills the heap. string Url = "http://api2.infobip....sendsms/plain"; Hashtable Args = new Hashtable(); Args["user"] = UserName; Args["password"] = Password; Args["GSM"] = CompactNumber(Destination); Args["sender"] = Originator; Args["Binary"] = Util.StrToHex(Text); Args["Type"] = "LongSMS"; return HttpRequest.Perform(Url, HttpRequest.UrlEncode(Args)); Anders

#4 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 20 September 2011 - 08:28 AM

Thanks for checking. 1.8 Euro cents is a very good rate, lucky you :)

#5 Brettski

Brettski

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationChicago, Illinois

Posted 14 January 2012 - 08:35 AM

There is also twilio.com, a web-based service were you can send and receive SMS messages for $.01 each. If you want to try some really crazy stuff, you can send and receive phone calls too. Netduino-based answering service anyone? :)

Regards,

Brett

#6 andersborg

andersborg

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 14 January 2012 - 01:07 PM

Regarding Twilio: SMS for 1 cent is very low, but manageable as the receiver pays the cost for the SMS transmission. It would be impossible with such a price in Europe. Yet they indicate they will offer SMS för UK as well. Most likely not at that price. I envy you Americans/Canadians :). Anders

#7 mutsop

mutsop

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 23 January 2012 - 02:45 PM

Is your class opensource? As I'm testing out their service as of now... It cost 0.026€ for 1 sms which isn't bad :)

#8 andersborg

andersborg

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 23 January 2012 - 03:12 PM

Is your class opensource?


If you are asking me: It could be. It's not much code.

Cheers.

#9 mutsop

mutsop

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts

Posted 23 January 2012 - 03:13 PM

well it would safe me some time rewriting it :) Its up to you... you can also pm it.

#10 andersborg

andersborg

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 23 January 2012 - 03:26 PM

No problem. You'll get a ZIP via IM.

#11 skarp0ye

skarp0ye

    New Member

  • Members
  • Pip
  • 1 posts

Posted 29 January 2012 - 10:22 AM

Currently testing this out myself, would also like to look at the code if you could PM :-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.