Use your forum account to login.


TOP Contributors

  1. MikroElektronika Team (662 codes)
  2. Shawon Shahryiar (258 codes)
  3. Alcides Ramos Zambrano (164 codes)
  4. Dany (66 codes)
  5. S P (63 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. FOURNET Olivier (25 codes)
  9. Alberto Trasimeni (25 codes)
  10. Roman Toropov (25 codes)

Most Downloaded

  1. Timer Calculator (91077 times)
  2. FAT32 Library (47113 times)
  3. Network Ethernet Library (43449 times)
  4. USB Device Library (33738 times)
  5. Network WiFi Library (31271 times)
  6. FT800 Library (26453 times)
  7. GSM click (21150 times)
  8. PID Library (21042 times)
  9. microSD click - Example (17346 times)
  10. GSM 2 click (14189 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back

GSM Library



Author: Dane du Plooy

Last Updated: 2017-04-17

Category: GSM / GPRS

Downloaded: 11333 times

Followed by: 9 users

GSM Library is designed to make interacting with a GSM module reliable and easy. The base library includes functions for detecting missed calls, working with the modules RTCC, reading IMEI, and entering SIM card pin.
Extensions are available for adding text messaging (SMS) and/or GPRS functionality (please see

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "GSM Library" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "GSM Library" changes.

Do you want to report abuse regarding "GSM Library".

  • Information
  • Comments (16)

Library Blog

GSM modules have made it easy for embedded developers to add hardware capable of connecting to cellular networks to their project. These GSM modules communicate via simple AT commands. Whilst the AT commands are easy to understand and use, writing reliable embedded code for interfacing using them can be challenging.
GSM Library has been designed to be easy to use, fast, and reliable - with fail-safes and retry mechanisms built in at every step. The base library provides the following functionality:

  • Detect a missed call (including the caller ID)
  • Read/write the GSM modules RTCC (real-time calendar and clock)
  • Receive the date/time from the GSM network
  • Read the modules unique IMEI code
  • Enter SIM card PIN code (optional)

Extensions to the library, available from, can be used to add the following functionality: Text Messaging Extension

  • Receive text messages
  • Send text message

GPRS Extension (currently only available for SIMCom modules)


Full source-code for the base library is provided, so you are free to modify and extend the base library if and as you wish (including adding your own text-messaging / GPRS extensions if you like!). The library is currently packaged for mikroC Pro for PIC, mikroC Pro for PIC24/dsPIC, mikroC Pro for PIC32, and mikroC Pro for ARM as well as mikroBasic Pro for PIC and mikroPascal Pro for PIC. The library code is MCU independent however, and we will also port it to any of mikroE's other C, BASIC or Pascal compilers for PIC24/dsPIC / PIC32 / ARM / AVR / 8051 based on demand. Example programs are currently available for the following hardware setups:


Fifteen Game


The original "Fifteen" game for mikroMedia for dsPIC33, by Aleksandar Nikolic, ported to mikroMedia for PIC18FJ. The "unsolvable puzzle" problem has also been resolved.

[Learn More]