Seeed Cellular Radio Module for .NET Gadgeteer

The drivers for the Cellular Radio module from Seeed Studio are still in development, so any code using this module has to be tentative at this stage. << Note: the new driver  by Eduardo Velloso has now been released: Drivers for the .NET Gadgeteer Cellular Radio Module.>> That said, using the module for voice calling requires only a little information about AT command syntax.  Any SIM card with a phone account will work in the card slot.

You’ll need a microphone/speaker set that has separate plugs for mic and speaker.  I found an old headset from a language instruction software kit that works.  The GHI Electronics Fez Spider Mainboard works fine with the Seeed Cellular Radio module.

The following video shows all the components.

Other than the hardware all you need to start calling is the following code.

using Microsoft.SPOT;
using Gadgeteer.Modules.GHIElectronics;

namespace SeeedCellularRadio
{
    public partial class Program
    {
        void ProgramStarted()
        {
            cellularRadio.PowerOn();
            button.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed);
            Debug.Print("Program Started");
        }

        void button_ButtonPressed(Button sender, Button.ButtonState state)
        {
            if (button.IsLedOn)
            {
                cellularRadio.SendATCommand("H"); // Hang up voice call.
                button.TurnLEDOff();
            }
            else
            {
                // Dial voice call; Use phone number as string without hyphens.
                cellularRadio.SendATCommand("D2065780941;");
                button.TurnLEDOn();
            }
        }
    }
}

You can send a text message with the current beta driver, but until a driver is released with access to the serial line, you won’t be able to receive text or see what is going on with the AT Commands.

Advertisement

, ,

  1. #1 by tamberg on January 19, 2012 - 11:44 AM

    Thanks for the example. Works fine. Cheers, tamberg

    • #2 by Michael Dodaro on January 19, 2012 - 1:16 PM

      New driver in progress by Eduardo Velloso: http://eduardovelloso.com/ It will expose methods to get text messages and some other features. I think he will make it available on Codeplex.

      • #3 by tamberg on January 20, 2012 - 12:54 AM

        Nice!

  2. #4 by wintonlin on February 6, 2012 - 12:36 AM

    Dear Michael:
    Could you please show an example for using GPRS module to send sensor data to a remote Data Base?(such as MS. SQL Server or MySQL). Thanks.

  3. #5 by Michael Dodaro on February 6, 2012 - 9:19 AM

    Hello, Wintonlin. Your suggestion is interesting and feasible. The Seeed GPS module and GHI Electronics WiFi module could be used with a Web service and SQL database for this purpose. WiFi is the most suitable platform for sending the data to a Web service. The Seeed Cellular Radio module could be used to text GPS data to another phone or email account. I don’t have a Wifi module right now. You could try this request on the .NET Gadgeteer discussion forum, and somebody might respond: http://www.netmf.com/gadgeteer/forum/default.aspx?g=topics&f=13

  4. #6 by wintonlin on February 13, 2012 - 7:10 PM

    Dear Dear Michael: Thanks. For some projects, like mine. The sensors are deployed on some Hard to reach place. So it is not possible to use Wifi. The best way is use 3G or GPRS to send some critical sensor data(when earthquake happened or Landslide ) to remote server. I think this kind of example may useful for many real monitoring projects.
    Thanks.

  5. #8 by Zakh on December 1, 2012 - 9:47 AM

    Hi Michael,

    May be a stupid question, but where are you defining the SIM Card PIN code ?

    Thanks in advance.

    Zakh

  6. #10 by Tiago Costa on April 16, 2014 - 4:25 AM

    hello, my question is have a cellular radio I want to send a variable(“http://www.citybox.pt/tracking/read.php?txt=Teste”) to a database via GPRS. Someone can help me please?

  1. Modulo Seeed Cellular Radio per .NET Gadgeteer « Integral Design
  2. Modulo Seeed Cellular Radio per .NET Gadgeteer (Italiano) « Integral Design

Leave a Reply to Michael Dodaro Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: