Home > Just Blog'ing > GM862 GSM and GPS Module Class

GM862 GSM and GPS Module Class

January 29th, 2009 Elze Leave a comment Go to comments

Telit GM862 ModuleFor my Dare to Dream Different Challenge project I ordered a Telit  GM862 GSM and GPS Module from SparkFun with Serial Carrier board. The GM862 is a very powerfull GSM Module with build in TCP/IP Stack for GRPS and DUN, SirfStar III GPS reciever, Python Intrepeter, Jammer Detection and many more powerfull functions.

The GM862 uses an AT command set that is compatible with regular Modem commands. So the code from this class can be a base for other AT Based devices (Like XBee modules or Bluetooth modules).

The class provided here is an intial version.This version includes: Basic GSM/GPRS/GPS Initialization, Sending and recieving of SMS Text messages and  retrieval of an HTML page.

Usage is very simple as demonstrated in this piece of code:

// Initialize GSM/GPS Device
GM862 = new GM862GPS("COM1");

// Make sure GM862 is in command state
GM862.Escape();

// Wait until GM862 is ready
while (true)
{
        try
        {
                GM862.ExecuteCommand("ATE1", 500);
        }
        catch
        {
                System.Threading.Thread.Sleep(1000);
                continue;
        }
        break;
}

// Store new pinRequest Handler
lock (GM862)
{
        GM862.getRequestedPIN = GM862_pinRequest;
}

You can download the class and an example program here: MFGM862Example.zip

 

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • NuJIJ
  • Technorati
  • Yahoo! Bookmarks
Categories: Just Blog'ing Tags: , , ,
  1. January 29th, 2009 at 15:27 | #1
  2. sanny
    January 29th, 2009 at 19:08 | #2

    cool, i had also an idea for the contest with gps/gprs-gsm module from sparkfun, but unfortunately i dont was elected … ;)

  3. x893
    February 11th, 2009 at 15:55 | #3

    I create gm862 w/o sparkfun module.
    http://akb77.com/g/gps/handmake-gsm-gps-tracker/
    also i add accelerometer to gm862

  4. February 13th, 2009 at 11:38 | #4

    this is very nice, but i want to learn, how you can connect this module with tahoeII board?

    With serial port?

    Module has a mini connector, i think you must made an external board like this one http://akb77.com/g/gps/handmake-gsm-gps-tracker/top.png

  5. miguel
    March 19th, 2009 at 16:17 | #5

    Hola. Interesantes aportes a mis conocimientos. Pero, aún tengo una gran confusión y nadie lo ha expuesto claramente. Cómo publico los datos del gm862 en una pagina web??

    Hello. Interesting contributions to my knowledge. But I still have a lot of confusion and no one has clearly explained. How to publish data gm862 on a website?

    Thank you very much

    miguel
    Muchas gracias

  6. Adel El Biari
    April 13th, 2009 at 17:02 | #6

    La publicación de los datos en una pagina web se puede hacer de una forma muy fácil es pasar a la pagina web un querystring

    abrir conección GPRS para bajar la pagina Web

    AT+CGDCONT =1,”IP”,”tuproveedor.es”,”0.0.0.0″,0,0 AT#USERID = “usuario”
    AT#PASSW = “contarseña”
    AT#SKTSET= 0,80,”www.tu_paginaweb.com”

    GET /test.php?dato=test HTTP/1.0
    Connection: keep-alive

    —————–
    osea es como llamar a una pagina
    http://www.tu_paginaweb.com/test.php?dato=test
    el dato test es recogido dentro de tu pagina web, es cuestion de programar, si la pagina contiene codigo html te lo retorna.
    Un Saludo…

  7. April 20th, 2009 at 16:28 | #7

    If finally did a interface between TELIT and a CAMERA
    http://www.basic4ever.com/bascom.shtml
    Best Regards!
    Miguel

  8. April 25th, 2009 at 23:38 | #8

    Interface between TELIT and a CAMERA, see this link:
    Microframework and embedded system
    http://www.microframeworkprojects.com/project/25
    Best Regards!

    ——————————————
    Esta pagina tiene varios proyectos realizados con el SDK .net Mocroframework, puedes bajar el ejemplo
    necesitas tener instalado VS.net 2005 y el SDK 2.5
    Saludos

  9. April 25th, 2009 at 23:53 | #9

    Para el ejemplo anterior de la camara con el modulo GM862 necesitaras el SDK 3.0 C#.net 2008
    ——————————————
    Example code Interfacing TELIT and a CAMERA included with GHI Micro Framework V3.0 SDK and C#.net 2008

    http://www.microframeworkprojects.com/project/25

    Saludos

  1. April 28th, 2009 at 22:58 | #1