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, 3 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 16, 2013 at 7:45 am #2685
    Parth
    Participant

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

    I want to work on 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:30 am #10533
    AJISH ALFRED
    Participant

    Hi Parth,

    Next time please make sure that you are not posting the same query again.

  • 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

  • Variable audio oscillator January 17, 2026
  • Sine wave distortion January 17, 2026
  • My Advanced Realistic Humanoid Robots Project January 17, 2026
  • Micro mouse January 17, 2026
  • flexible copper cable January 16, 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