Attached code explains the interfacing of a Quectel's GSM module and Phillips 89c51RD2 microcontroller