blog.3bit.com


GSM modems != good SMS gateways

, posted: 4-Aug-2011 15:57

(for non-programmer folks, != means does not equal)

I've had a little time up my sleeves lately, so I decided to get my hands dirty and code up an application that would send and receive SMS messages.  Based on the advice of Geekzone guru sbiddle, I bought a Wavecom GSM modem (USB model) and dropped in a 2degrees SIM.

Doing some research, I found a handful of existing programs that would do the send/receive I wanted, but they were all too expensive (for example, ActiveXperts SMS component, US$795).  Using a standard COM port, I control the modem using the standard AT+ commands, that most (if not all) GSM modems support.  My thinking was that if I made the program light-weight, send/receive of SMS would be lightning fast.

I wrote a pretty straight forward, basic program - when a message is received, it logs it to a SQL Server database, does some processing, and then fires back a reply - this is where I came unstuck.

I've had the luxury of using commercial SMS gateways before.  They are super fast, and very reliable however you pay for the convenience. Trying to replicate this cheaply using a GSM modem is just not possible.

The biggest issue I encountered is speed.  The modem can only work as fast as the connecting network will allow.  Trying to send a message while the modem is already sending one will cause it to jam; the same happens for receiving multiple messages concurrently.  If you have a time sensitive application, this method is just too slow.

I also discovered interesting delays between Vodafone and 2degrees.  Sending a SMS message from my mobile (Vodafone) to the GSM modem (2degrees) would take around 25-30 seconds to arrive, however the reverse worked much faster at an average of 4 seconds.

My recommendation: if you want speed and reliability, go with a commercial SMS gateway provider (and be prepared for an light/empty wallet). For less time sensitive applications, a GSM modem will do just fine.



Other related posts:
Vodafone voicemail-to-email for free
Vodafone’s Sure Signal upgrade
How to fix “Message rejected by Google Groups”


 





Comment by freitasm, on 4-Aug-2011 16:38

Good advice.

And be prepared for spammers to start posting comments about SMS gateways... 


Comment by jbard, on 5-Aug-2011 04:29

Hmm i wonder if the expensive programs would help with the speed issue, i guess not as it is the modem that is the issue.

Maybe making a que and only pushing messages to the modem every 5 seconds or so would ease things up.

What sort of speeds are we talking here, if i had say 500 messages to send out how long would that take?

Cheers


Comment by freitasm, on 5-Aug-2011 09:22

Making a queue and pushing the messages at one every five seconds wouldn't scale quick enough. That would be twelve messages per minute, a very small number...


Comment by Fraktul, on 5-Aug-2011 09:53

Did you consider using kannel for the SMS Gateway and then integrate your backend system into that?

We went with our own voicemail and got VF to hand off this to us so we could integrate in with our softswitch VM more tightly. However we didn't have a way to get VM notifications out initially and so setup Kannel to do this with a rack of connected wavecom modems for this. Worked pretty well for bodge job at the time.


Comment by luke, on 9-Aug-2011 10:52

The device we use:
http://www.2n.cz/en/products/gsm-gateways/analog/smartgate/

Along with the following link we use a custom batch file to text us if servers are down. Very handy over the weekends.

http://smstools3.kekekasvi.com/


Comment by codyc1515, on 10-Aug-2011 16:44

I also struck these delays when I was making an app that would do what you mentioned in C#. It is very, very slow for the modem to process. e.g. doesn't scale well


Comment by Alex, on 22-Aug-2011 03:09

Here is cheap SMS software for GSM modem.
http://smsenabler.com
It costs ten times less than the activex components you mentioned in your post.


Add a comment

Please note: comments that are inappropriate or promotional in nature will be deleted. E-mail addresses are not displayed, but you must enter a valid e-mail address to confirm your comments.

Your name:

Your e-mail:

Your webpage:

nate's profile

 
New Zealand


I'm Nate Dunn, and I work as a developer for 3Bit Solutions and a moderator here at Geekzone.






Disclaimer
The views and opinions represented in this blog are personal and belong solely to the blogger and do not represent in anyway those of 3Bit Solutions Limited or any other company.


Latest posts

Vodafone voicemail-to-email fo...
Vodafone’s Sure Signal u...
How to fix “Message reje...
2,300 tweets a second...
Labour’s malicious breac...
Mobile prepay top ups with Vod...
Amazon’s Kindle to be so...
Latest and greatest from Panas...
All about GPS tracking...
Review: ICONZ Versa virtualise...

Most popular

TVNZ Ondemand now on Sony Play...
(20-Apr-2010 13:55, 11773 views)
Add more memory for free...
(1-Apr-2010 00:26, 10118 views)
Putting the BP Oil spill in pe...
(31-May-2010 06:00, 10107 views)
Why I would avoid Euro Car Ren...
(22-Mar-2010 11:03, 9657 views)
Amazing 3D from Panasonic...
(15-Mar-2010 10:00, 9574 views)
Mighty Ape heads over the ditc...
(27-Apr-2010 19:57, 9447 views)
Sky and the precioussss EPG....
(29-Mar-2010 11:00, 9139 views)
Review: Sony DSC-TX5 Cyber-sho...
(21-Jun-2010 01:07, 8929 views)
Who is deceiving – Close...
(22-Mar-2010 19:09, 8460 views)
Long suffering with Telecom...
(26-Apr-2010 09:00, 8052 views)

Comments

Craig on Vodafone voicemail-to-email for free: Just set this up with my 2degrees number and it works fantastically! Far, far ea...

Alana Fulvio on My quest to topup a Telecom T-Stick: I found your webpage about the Vodafone T-stick and couldn't help but laugh (1st...

rhysb on Vodafone voicemail-to-email for free: I did a similar thing, but using Exchange 2010 UM. Allows voice navigation and t...

anton.harper on Vodafone voicemail-to-email for free: The 028 "2Talk" voicemails are also very high quality uncompressed WAV's and are...

Adam Jobbins on Vodafone voicemail-to-email for free: Cool hack. Shame Visual voicemail doesn't work in NZ/Other than iPhone smart pho...

Steve Biddle on Vodafone voicemail-to-email for free: If you have lots of included minutes you can also just set the redirect and pay ...

Adam on Vodafone’s Sure Signal upgrade: Nice you got at upgrade, but I would be asking myself why you need one at all. I...

Kindle NZ on Amazon’s Kindle to be sold through Walmart: Does walmart sold kindle touch in new zealand?...

codyc1515 on Vodafone’s Sure Signal upgrade: So the benefit of this new one vs. the old one is that it offers a 14.4Mbps spee...

rokslide on TVNZ Ondemand now on Sony PlayStation 3: Looks like the 3.73 update changes the TV On Demand stuff around a bit. Interes...