SMSLib With Google App Engine

68 views
Skip to first unread message

Rohit Bhat

unread,
Jul 11, 2011, 8:19:23 AM7/11/11
to google-a...@googlegroups.com
Hi,

I am creating an app that sends an SMS to users based on what they enter on the web page. I am using SMS lib to send the SMS. Now when I use it on my local machine, it can send the SMS because it knows the hardware connected to the local machine. But once I deploy my application to the GAE, how do I configure GAE to find out my GSM Modem connected to my laptop for sending the SMS?

Vinuth Madinur

unread,
Jul 11, 2011, 12:15:03 PM7/11/11
to google-a...@googlegroups.com
You can perhaps use Channel API or XMPP. Listen on a unique channel on your laptop. On appengine app check for laptop presence and act accordingly. This kind of setup can work in development as well as production mode.



On Mon, Jul 11, 2011 at 5:49 PM, Rohit Bhat <smashi...@gmail.com> wrote:
Hi,

I am creating an app that sends an SMS to users based on what they enter on the web page. I am using SMS lib to send the SMS. Now when I use it on my local machine, it can send the SMS because it knows the hardware connected to the local machine. But once I deploy my application to the GAE, how do I configure GAE to find out my GSM Modem connected to my laptop for sending the SMS?

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/k2I3YIsY_50J.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

JH

unread,
Jul 11, 2011, 1:17:25 PM7/11/11
to Google App Engine
I think it would be hard to use production GAE + gsm modem on your
local laptop to send SMS. I'd recommend twilio.com or tropo.com for
sending SMS.

Kyle Finley

unread,
Jul 11, 2011, 2:03:51 PM7/11/11
to google-a...@googlegroups.com
Another solution would be to use SMS gateways http://en.wikipedia.org/wiki/List_of_SMS_gateways

Vinuth Madinur

unread,
Jul 12, 2011, 12:17:22 AM7/12/11
to google-a...@googlegroups.com
SMS gateways and solutions like twilio and tropo are good solutions in US. But not stable or economical for other countries, especially India. In India, perhaps he can check out txtweb, exotel or smsgupshup


On Mon, Jul 11, 2011 at 11:33 PM, Kyle Finley <kylef...@gmail.com> wrote:
Another solution would be to use SMS gateways http://en.wikipedia.org/wiki/List_of_SMS_gateways

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/jlP4qHr1RYkJ.

Rohit Bhat

unread,
Jul 12, 2011, 10:37:20 AM7/12/11
to google-a...@googlegroups.com
Thanks for the replies.

I would want a free application preferably. That's the reason I chose SMSLib. Now although I can send and receive SMSes and perform other functions from my own laptop, the only hindrance is how to integrate it with GAE.

So from what I gather, the suggestion by Gubbi seems to be the best. I'll look at the channel API and XMPP.

Is there any other way?

Rob Coops

unread,
Jul 12, 2011, 10:57:45 AM7/12/11
to google-a...@googlegroups.com
You do realize that this means your site will only work as long as your laptop is switched on and in reach of a cell tower so it can sent the SMS?

Anyway, I remember several years ago working with a SMS module connected to a linux machine, what we did (as the http server ran on a different machine) was simply send an email to a specific mail address, on the machine with the SMS module a little script would poll the mailbox every few minutes and once an email was found the body was read. The body contained something like this:

Sender user ID
###
Telephone number
Telephone number
...
###
Message
...
###

Each telephone number on the list would all telephone numbers that would get the message the Sender user ID was simply for internal tracking just in case someone would send something that was less appreciated by the receiver(s)

Using the chanel or XMPP communication is an option but as you are going to be using a laptop to do the sending you have to make the assumption that the laptop will not be always on. By using the mailbox and the polling script your mail server will "cache" the messages till your laptop is available again and the polling script can be bothered to pick up the emails.
(of course the mail solution will introduce a bit more delay between the user hitting the button and the SMS being send but with the sending system being a laptop I have the feeling that this might not be such a big drawback)

Personally I don't see why this stuff should be done by a laptop but its your system and I am sure you have a good reason to use the setup as you are planning to do.

Regards,

Rob

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/FnamLngwOL4J.

Rohit Bhat

unread,
Jul 12, 2011, 11:13:18 AM7/12/11
to google-a...@googlegroups.com
I'm basically doing this for a project, but I can make use of a dedicated server if need be. The email method is indeed nice and pretty much solves the problem of the GSM module being on a different server. I'll just consult with my other team mates and decide the best option. 

Thanks for the replies everyone

Nickolas Daskalou

unread,
Jul 12, 2011, 10:51:08 PM7/12/11
to google-a...@googlegroups.com
You could use a Pull Queue instead of an email sending/polling system:


Nick


On 13 July 2011 01:13, Rohit Bhat <smashi...@gmail.com> wrote:
I'm basically doing this for a project, but I can make use of a dedicated server if need be. The email method is indeed nice and pretty much solves the problem of the GSM module being on a different server. I'll just consult with my other team mates and decide the best option. 

Thanks for the replies everyone

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/XqjsSwab-pUJ.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages