RaspberryPi with SM5100b GSM GPRS cellular shield


I am going to try porting my PC python script for interfacing to the SM5100b directly to the RPi instead of converting it to an Arduino program.

UPDATE: Wow… it was easier than I thought it would be. I was able to quickly get to the same level of functionality as that previous post in less than an hour. Here is the push message posted to Prowl app using the cellular shield by a python script running on the Raspberry Pi.

Updates project files should show up on my github soon.



HTTP GET prowlapp API works with SM5100B

I was finally able to get the prowlapp HTTP GET API working with the state machine machine based serial modem interface I wrote in Python running on my PC. I will be adding the updated files to my github repository very soon.

Here is a screen shot of the received message in iOS:


Next step, get this working with native Arduino code.

Push growl notifications to Prowlapp with telnet

Assuming that you know what I am talking about, here is how it was done:

> cat ~/bin/http_get.sh
 if [ $# -ne 4 ]
 echo "Example: `basename $0` test.com 80 test.com / | telnet"
 exit 1
 echo "open $1 $2"
 sleep 2
 echo "GET $4 HTTP/1.0"
 echo "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070515 Firefox/"
 echo "Host: $3"
 sleep 2
 > ~/bin/http_get.sh www.prowlapp.com 80 www.prowlapp.com '/publicapi/add?apikey=YOUR_PROWL_KEY_GOES_HERE&application=dah&event=doo' | telnet
 telnet> Trying
 Connected to www.prowlapp.com.
 Escape character is '^]'.
 HTTP/1.1 200 OK
 Date: Mon, 10 Sep 2012 23:40:33 GMT
 Server: Apache/2.2.3 (CentOS)
 X-Powered-By: PHP/5.1.6
 Vary: Accept-Encoding
 Content-Length: 118
 Connection: close
 Content-Type: text/xml
 <?xml version="1.0" encoding="UTF-8"?>
 <success code="200" remaining="999" resetdate="1347324034" />
 Connection closed by foreign host.

Thanks to this tonycode.com blog post for the script idea with telnet.