EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / INTERFACING GSM MODULE

INTERFACING GSM MODULE

|

Microcontroller › 8051 › INTERFACING GSM MODULE

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 4 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 16, 2013 at 8:14 am #2686
    Parth
    Participant

    Hi, I m interfacing GSM Module with 89v51rd2 controller.

    I want to work out this command “AT+CCLK?”. When I m sending this command from PC using hyperterminal by I am getting an error when I send this command from microcontroller. Please help, its urgent….

     

    #include <REG51F.H>
    #include “lcd.h”
     
    char a[25];
    int i;
     
    void serial_init() 
    {
        SCON=0x50;   //setup for 8-bit data
        TMOD=0x20;    //setup timer 1 for auto-reload
        TH1=0xfd; //Baud Rate 9600
        TR1=1;       //turn on timer 1
        TI=0;         //indicate ready to transmit
    }
    //This function displays a null-terminated string on the RS232 port
    void send_serial(unsigned char *s)
    {
        while(*s!=0x00)
        {
            SBUF=*s;
            while(!TI);
            TI=0;
            s++;
        }
    }
     
    void rec()
    {
        i=0;
        while(SBUF!=’’ && i<16)
        {
             while(!RI);
             a= SBUF;
             ++i;
             RI=0;
        }
    }
     
    void main()
    {
        serial_init();
        lcd(“receiving”);
        send_serial(“ATr”);
        delay(100);
        send_serial(“AT+CCLK?”);
        delay(10);
        send_serial(“r”);
        rec();
        delay(100);
        lcd(a);
        delay(1000);
    }
     
    October 18, 2013 at 8:28 am #10532
    AJISH ALFRED
    Participant

    Hi Parth,

    The GSM modules usually don’t have the complete set of AT commands. Please go through the datasheet of the device and find out whether that particular command is available in the device or not.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • CR2/CR123A Batteries In Projects February 14, 2026
  • Integrating 0–5V ECU Signals into a Double-DIN Setup – Module vs Custom Head Unit? February 14, 2026
  • Puzzled about a relay February 13, 2026
  • Switch Circut February 13, 2026
  • RC Electronic Speed Control Capacitors February 13, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise