Using MOD-GSM with iMX233-OLinuXino


Image

MOD-GSM is 4 band cellular phone GSM/GPRS module which allow any board with UEXT connector to place and take GSM calls and to send and receive SMS-s and to connect to internet through GPRS and send and receive TCP-IP data.

Onw of our developers, Stefan made small demo example for how to use MOD-GSM with iMX233-OLinuXino, the project is at GitHub https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/iMX233/MOD-GSM

you can compile it with:

$ cc MOD-GSM.c -o mod-gsm

them make it executable with

$ chmod +x mod-gsm

and use it with

$ ./mod-gsm -help

what MOD-GSM code does? Each time somebody call the SIM card phone number it will log it in CALL-LOG file, if SMS is received it’s logged in SMS-LOG

with:

$ ./mod-gsm -pb ADD OLIMEX +35932626259

you create new entry in the PHONE-BOOK

then if you got call from +35932626259 it will log it as call from OLIMEX

you can send SMS with this command

$ ./mod-gsm -sms OLIMEX

then the program will wait for the SMS text terminated with <enter> and send it

you can also run mod-gsm with & to run in background and log your calls and SMS-s

Important note: SIM card which you insert in MOD-GSM should have no PIN code, also UEXT cable should be at least 20 cm as when MOD-GSM is near OLinuXino during the call time it emits so much energy that from time to time cause re-boot, to prevent this as you can see on the picture above I add some aluminum shield between the MOD-GSM and OLinuXino.

Also it’s good to cut the ribbon cable and left only wires# 1-4 which carry VCC, GND, UART.TX and UART.RX as MOD-GSM depend on how configured my drive up/down the other UEXT ports also and to mess with other modules on the UEXT bus.

3 Comments (+add yours?)

  1. Dany
    Oct 12, 2012 @ 22:04:51

    and PPP ?

    Reply

  2. Skaag Argonius
    Oct 22, 2012 @ 21:31:22

    My guess from looking at the source code is that PPP is simple to establish using the standard Linux scripts & utilities, since the modem appears connected on a serial port.

    Reply

  3. TheDareGuy
    Nov 04, 2012 @ 21:14:51

    Hi OLIMEX guys, you are great!!! But… When are you expecting to release a 3G module? I REALLY need it!!! :)

    And regarding connect scripts… I thing this solution is very clean:
    http://www.grazz.com/2010/05/29/huawei-k3765-and-vodafone-on-arch-linux/

    BR, TDG

    Reply

Leave a 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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 458 other followers

%d bloggers like this: