Using MOD-GSM with iMX233-OLinuXino


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

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


$ ./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.

5 Comments (+add yours?)

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

    and PPP ?


  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.


  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:

    BR, TDG


  4. The faithful
    Aug 15, 2014 @ 14:18:52

    can somebody help me i have olimixino A20 and a mod gsm olimex i am tired to send sms but it dosn’t work i follow this toturial there was no error but the sms is not sent … i want just know if ther is configuration should i do before start this tutorial … is it necessary to install ppp ?? thks 🙂


  5. Redwane
    Feb 18, 2015 @ 00:41:20

    hello everyone,
    I have the same problem as The faithful with olinuxino A20, is someone to solve the problem ??
    sorry for my poor english


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

%d bloggers like this: