This is full set of procedures used to communicate with any GSM module for SMS sending/receiving (it uses standard AT commands). Original code is for ATMega162 microcontroller, but code is general to be easy ported to others platforms. Code can be compiled with IAR AVR compiler.