Students here have used the GSM modems from Sparkfun and Enfora (image below) to place calls and send and receive SMS in over a dozen projects with other microcontrollers. With a serial interface you can send and receive SMS messages using some simple AT commands. A USB modem interface would be faster for data service but quite a bit more mbed code work! Make sure you have the right serial port baud rate for the modem and check if you need a null modem serial cable. You have to plug in a SIM module. You can probably use the one from your cell phone. A few carriers seem to lock to the serial number of your regular phone and turn off your service when it changes (with the modem), but it comes back as soon as you put the SIM back in your old cell phone. Most carriers work just fine and don't check. Don't forget the antenna and wall wart, sometimes they are sold separately. I would try the AT sequence out first using a serial cable on your PC and a terminal emulation program like hyperterm or realterm before writing mbed code to do it. On the Enfora GSM modem it is just as simple as this:
After the modem is properly configured, to send an SMS message the following command is sent from the computer at 115K Baud on the serial port:
AT+CMGS=”18005551212”
The modem responds with
>
And next the message text is then sent by the computer with:
SMS Message text is here ^Z
And finally the modem responds after a slight delay to acknowledge sending the SMS message with:
+CMGS: number
OK
A similar command syntax that varies somewhat between the different cell phone service providers can also be used to send the SMS message text to an email account. Received SMS messages can also be read back to the computer over the serial link. Most modems have a manual that lists the AT commands on the company web page and be sure to get it! A few even have ap notes on sending SMS messages. It is a bit harder to find any place that sells the enfora modems, but the small case is easier to deal with.
Sparkfun modem Enfora modem
Hey all,
so i just ordered a GSM module and eval board from Spark Fun. http://www.sparkfun.com/commerce/product_info.php?products_id=9427
Just wondering if anyone has played around with Mbed's and GSM/GPRS Modules?